Added closing connections