close the connections