Export more functions for connection closing in synchronous sockets