Catch exceptions in setup, and display them in an error box.