removed @todo from applicationWillTerminate, now works!