added error logging to File_Log