Cleanup callback from the engine to the game added. Still will need to deal with race conditions when the user explicitly hits close and the garbage collector not ticking afterwards.