Return standard exit codes defined in sysexits.
Catch and log unhandled exceptions.
Display full traceback in GUI when app crashes and allow saving of log.
Cleanup.