respone  save  action by applicationDidEnterBackground & applicationWillTerminate.