@Override
	public synchronized void close() throws IOException {
		if (raf == null) {
			return;
		}

		boolean commit = false;
		try {
			if (activeOutputBlockStream != null) {
				// active block stream was not closed properly
				try {
					activeOutputBlockStream.close();
				}
				catch (IOException e) {
					// ignore
				}
			}
			else {
				commit = flush();
			}
			raf.close();
		}
		finally {
			raf = null;
			if (!readOnly && !commit) {
				// commit failed
				file.delete();
				if (activeOutputBlockStream != null) {
					// block stream forced closed above but need to throw critical error
					activeOutputBlockStream = null;
					throw new IOException("active block stream was not closed properly");
				}
			}
		}
	}
True if buffer file is closed
@return true if buffer file is closed
Ghidra/Framework/DB/src/main/java/db/buffers/LocalBufferFile.java