'This is a very simple command, using the
stored deferred from the exit traversal above.'

def func(self):

    currently_moving = self.caller.ndb.currently_moving
    if (currently_moving and (not currently_moving.called)):
        currently_moving.cancel()
        self.caller.msg('You    stop    moving.')
        for observer in self.caller.location.contents_get(self.caller):
            observer.msg(('%s    stops.' % self.caller.get_display_name(observer)))
    else:
        self.caller.msg('You    are    not    moving.')
