Nulling out the connection field when it's being closed.