Rescue and ignore IOError from IO.select

Same rationale as for Errno::EBADF