I now ensure that the connection is closed.