def on_cleanup_error(function, path, excinfo):
                click.secho("warning: failed to remove file or directory: {}\n"
                            "please delete it manually.".format(path),
                            fg="red")
def check_prereq(self, prereqMode = 0):
        self._exit_modes_beyond(prereqMode)
        if len(self.modeList) <= prereqMode:
            raise Exception("Attempted to enter menu when prerequist mode was not entered, expected: %d" % prereqMode)