Moved close-all-connections! to better spot.