The way out of this does not fit. In applet-applicationWillResignActive :, simply unauthenticate the user or whatever you try to do with a full restart every time. I don’t know what a steel safe is, but it probably doesn’t.
Or maybe check the UIApplicationProtectedDataWillBecomeUnavailable notification? However, it is sent only when the device is locked, if the user has a password. If you use NSFileProtectionComplete in your "secret" files, close them when you are inactive.
source share