File logger catches any exception that occures when writing data to the file. Added to prevent crashes that happen when the file logger is used and the device is out of disk space.