added cleaning option to the appender
do additional cleaning