[NEXUS-6079] Reset loggers

https://issues.sonatype.org/browse/NEXUS-6079
https://bamboo.zion.sonatype.com/browse/NX-OSSF53