added test for detecting a socket close