Crash detection and eventually crash recovery

Then test wifi/data connection before taking a picture....