disposal of the tcp connection can be tricky