catch all errors that we throw and print the message