fix for dirty custom sdcard path
defensive logging for cases in which the log insertion caused application crashes - cleanup of unused try-catch blocks