@Override
	public void dispose() {

		removeOwnerInstance(this);
		removePathInstance(this);

		synchronized (this) {
			if (!disposed) {
				try {
					unexportObject(this, true);
				}
				catch (NoSuchObjectException e) {
					// ignore
				}
				bufferFile.dispose();
				disposed = true;
			}
		}
	}
Dispose associated buffer file and unexport this instance.
Ghidra/Features/GhidraServer/src/main/java/db/buffers/RemoteBufferFileImpl.java