def fail(self, msg, exc=None):
logger.error(msg)<EOL>if exc is not None:<EOL><INDENT>logger.debug('<STR_LIT>', exc_info=exc)<EOL><DEDENT>sys.exit(<NUM_LIT:1>)<EOL>
Exit command as a result of a failure.