fix tcpsocket close event bug

Change-Id: I16c15916c49c6dc4ae6d8d7bc596df08da21aa14