close connections on client