close workers sockets in gateways