Catch all exceptions in main and print them