Rename OnFileClosePlaylist() to OnFileCloseAndRestore() for consistency with a capture mode.
Remove commented out code.