Refractored WatchingServer to respond only to sockets if they aren't closed