synchronized void endCheckout(long checkoutId) throws IOException {
		validate();
		ItemCheckoutStatus coStatus = checkouts.remove(checkoutId);
		if (coStatus != null) {
			item.log("checkout (" + checkoutId + ") ended", coStatus.getUser());
			if (coStatus.getCheckoutType() != CheckoutType.TRANSIENT) {
				boolean success = false;
				try {
					writeCheckoutsFile();
					success = true;
				}
				finally {
					if (!success) {
						checkouts.put(checkoutId, coStatus);
					}
				}
			}
		}
	}
Terminate the specified checkout

@param checkoutId checkout ID
@throws IOException
Ghidra/Framework/FileSystem/src/main/java/ghidra/framework/store/local/CheckoutManager.java