Properly handle client disappearance; test sockets