* Sets a handler for uncaught exceptions that pops up a message dialog with the exception.
* <p/>
* Called from the constructor, in the main thread.
*/
private void initLastResortHandler() {
Thread.currentThread().setUncaughtExceptionHandler(new LastResortHandler());
}