tlsify: close sockets and terminate on disconnects