Add backwards compat shim for server
properly invalidate the socket on close