initial log4net add and some errorhandling/cleanup for publication