impl error handling in case that file is not found
bugfix for cmd_log