avoid double-close of uv handles at exit

If uv__run_closing_handles isn't called between closing a handle and
uv_atexit_hook then uv_atexit_hook will attempt to close the handle
again, causing an assertion failure.
Merge pull request #2188 from rlane/fix-uv-close

avoid double-close of uv handles at exit