added rebind stuffs and close socketK