Unhandled exceptions: Dont warn when there are unhandled exceptions in main() function. #5751