add methods to close rpc clients

Shutting down server nodes when holding rpc client connections results in "rpc: client protocol error: unexpected EOF". It would require to close relevant rpc clients beforehand. As far as I could see, this is currently not possible. Adding these methods or simply exporting clients in switchboard would help. Thanks.