windows: run close callbacks after polling for i/o

Makes the uv-win behavior compatible with uv-unix.

Fixes #796.