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 execute_as(self, user):
        self.check_prereq(self.LOGGED_IN)
        self._exit_modes_beyond(self.LOGGED_IN)
        user.commandLine(self)
        user.login()
        self.modeList.append(user)
        return user