handle socket in use