IO#wait should return nil for EOF IOs.

This fixes #2.