@Override
	protected void doStop() {
		
		if (this.filename != null) {
			File file = new File(this.filename);
			try {
				FileOutputStream fos = new FileOutputStream(file);
				this.properties.store(fos, this.fileComment);
				fos.close();
			} catch (FileNotFoundException e) {
				this.logger.logError(LOGGING_SOURCE, "unable to create properties file " + file.getAbsolutePath());
			} catch (IOException e) {
				this.logger.logError(LOGGING_SOURCE, "unable to store properties file " + file.getAbsolutePath());
			}
			
		this.logger.logNotice(LOGGING_SOURCE, "properties stored to file " + file.getAbsolutePath());
		}		
		super.doStop();
	}