if (reliable != null) { try {  out.write(ReliableFile.identifier1); byte crcStr[] = ReliableFile.intToHex((int) crc.getValue()).getBytes(); out.write(crcStr); out.write(ReliableFile.identifier2);  try { out.flush(); ((FileOutputStream) out).getFD().sync(); } catch (IOException e) {   e.printStackTrace(); } super.close(); } finally { reliable.closeOutputFile(); reliable = null; } }
closeIntermediateFile(); reliable.closeOutputFile(crc);    reliable = null;
	public synchronized void close() throws IOException {		if (reliable != null) {			try {				// tag on our signature and checksum				out.write(ReliableFile.identifier1);				byte crcStr[] = ReliableFile.intToHex((int) crc.getValue()).getBytes();				out.write(crcStr);				out.write(ReliableFile.identifier2);				try {					out.flush();					((FileOutputStream) out).getFD().sync();				} catch (IOException e) {					// just ignore this Exception					//Debug					e.printStackTrace();				}				super.close();			} finally {				reliable.closeOutputFile();				reliable = null;			}		}	}