Added close connection methode