[FIX] Add missing active check
[FIX] Add missing active check

uv_close() was called unconditional on handle, which casued an assertion in
libuv to be triggered if handle was not active.

NEAT-project/neat,NEAT-project/neat,NEAT-project/neat,NEAT-project/neat,NEAT-project/neat