def exit_ok(self, message, exit_code=None):
        """Log a message and exit

        :param exit_code: if not None, exit with the provided value as exit code
        :type exit_code: int
        :param message: message for the exit reason
        :type message: str
        :return: None
        """
        logger.info("Exiting...")
        if message:
            logger.info("-----")
            logger.error("Exit message: %s", message)
            logger.info("-----")

        self.request_stop()

        if exit_code is not None:
            exit(exit_code)