Moved undo to its own fn, needs adding to rvm_map for recovery undo.