"unhandledException" handler should be in app main script, not here