disableWriteAheadLogging() unavailable workaround by catching an error