error recovery when headless canvas dispose didn't work
added log4j config