It was intended to log only if an Exception occurs in a non-shutdown case. Unless there is some way this thread would be canceled while active is still set to true?