check uv_async_t wasn't already close
When embedding nodejs into another project. Developer have the possibility to provide there own uv_loop
structure and can walk through its handler and close it.
AgentImpl::~AgentImpl()
should verify if data_written_
async handler wasn't already close.