watch for socket close, fix sdk version 8 method missing issue.