Error handling in main()

What's the right way to handle errors in the main function?