This construct will catch any Exception and suppresses the backtrace.
Any error message is registered by logging before. In the current
commit this is already satisfied, but error message might get registered
twice.
Next we don't register error messages with logging before and move the
logging.critical message to the top-level except-Exception.