Rescue Errno::ESRCH in correct place