Added a closeConnectio()