cleanup log4j initialization to avoid stderr output before init