end the getmessage goroutine when client closes the conn