remove old code, add some event handle for better socket resource release