add additional guards around logger use
1.0.1