Don't close something we don't have a reference to (if we don't have a reference, obviously we don't need to close it!)