@Override
	public void dispose() {
		try {
			if (!readOnly) {
				delete();
			}
			else {
				close();
			}
		}
		catch (Throwable t) {
			Msg.error(this, t);
		}
		finally {
			if (activeOutputBlockStream != null) {
				try {
					// force closure of active block stream
					activeOutputBlockStream.close();
				}
				catch (IOException e) {
					// ignore
				}
			}
			activeOutputBlockStream = null;
		}
	}
Write all unwritten data to the file prior to closing.
@return true if flush was performed, false if not required.
@throws IOException thrown if flush failed
Ghidra/Framework/DB/src/main/java/db/buffers/LocalBufferFile.java