catch permission issues accessing the logfile