General: Added class to log exceptions before crashing.

Now the exceptions are saved to a TXT on the SD card before crashing.