Keep gateway sockets open during handshake