Made the connection closes clean