Added checks if log files could be opened.