Don't try to close a connection that does not exist.