handle exceptions parsing log file names