Detect deadly overrun and exit; Put log file to log directory