on retire socket.connection