Fixed error handling on uncaught exception