code: def exit_on_exception(self, raised_exception, message='', exit_code=99):
          
          self.exit_on_error(message=message, exit_code=None)
  
          logger.critical("-----\nException: %s\nBack trace of the error:\n%s",
                          str(raised_exception), traceback.format_exc())
  
          exit(exit_code)
docs: Log generic message when getting an unrecoverable error
  
          :param raised_exception: raised Exception
          :type raised_exception: Exception
          :param message: message for the exit reason
          :type message: str
          :param exit_code: exit with the provided value as exit code
          :type exit_code: int
          :return: None