title: Terminating a wxPython app cleanly
body: <p>I'm working on a wxPython app which has multiple frames and a serial connection. I need to be able to exit the app cleanly, closing the serial connection as the app terminates.</p>
  
  <p>What is the best way to do this? Should this be handled by a subclass of wxApp?</p>
  
  <p>Thanks,
  Josh</p>