Check for save on system close