Catch all exceptions for errors