[services/federation] make super sure we close sockets