fix #29: server close semantics, fix uv_async handling