added support for calling the memento whenever the game is closed too early.