Catch exceptions

Clean the output, output the message and exit. Prevents mixed up error
screens.