Making sure connections are closed also lazy connection to avoid exceptions hanging on to connections.