remove session when socket is closed
correct comment