def run_restore_commands(self, stdin):
        if not self.mongo_temp_dir:
            raise Exception("Mongo temporary dump folder doesn't exist")
        stdin.seek(0)
        self.run_commands(self.settings.RESTORE_COMMANDS, stdin=stdin)
        return self.run_commands(self.settings.MONGO_RESTORE_COMMANDS)
L{Action.__exit__} unsets the action if the block raises an exception.
dataset/ETHPy150Open django-dbbackup/django-dbbackup/dbbackup/dbcommands.py/MongoDBCommands.run_restore_commands--crossover with--dataset/ETHPy150Open ClusterHQ/eliot/eliot/tests/test_action.py/ActionTests.test_withUnsetOnRaise