Are you doing it with AS3 or AS1/2?

In both cases you may wish to write gameEnd function where you basically clean up all the listeners and send playhead to correct frame. Then for whichever reason game is going to end you only need to call one function and it will take care of everything.