@Override
	public void close() throws SecurityException {
		closing = true;
		flush();
		open = false;
		if(outStream!=null){
			try {
				outStream.close();
			} catch(IOException e) {
				e.printStackTrace();
			}
		}
		if(fw!=null){
			try {
				fw.close();
			} catch(IOException e) {
				e.printStackTrace();
			}
		}
	}