Catch EOF error for empty temp file