Debug: when the app is killed.