* handle uncaught exception in application
* handle db saving on application exit instead of window close event