Ended the socket too early