Disconnect all connections when done.

Remove the API bits that were incompatible with doing so.