This shouldn't be an issue for "waiting" - 100 turns isn't that long so you just end up killing some time - but it should be possible to interrupt movement (e.g. w#), since otherwise you have to walk back manually.
Or, you should be able to go "w*" or something, and then get a cursor which you can move to any destination on the current level.