close the connections.