Added default unhandled exception handler with pretty printing