<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def fallback(message: str, ex: Exception) -> None: """ Fallback procedure when a cli command fails. :param message: message to be logged :param ex: Exception which caused the failure """

    logging.error('%s', message)
    logging.exception('%s', ex)
    sys.exit(1)