Catch IOError for PID file #167