Fix for mode-reset lag.

Moved mode resets to a separate method so it can be called
separately. This allows it to be performed before disk I/O at the
end of a game.