When in debug, also printstacktrace on uncaught exceptions.
Properly dispose of media views when relaunching.