add mapping in addHandler
add isalive before cancel workerthread
implement tcptexthandle