Fix NSDocument block callbacks by copying the block handles.
Display our quit application dialog when a game is running. Keep track of the game documents that are opened and closed and override closeAllDocuments to display our dialog if a game is running.