Only log ThisIsNotAnError shutdown stack trace when running in debug mode

Signed-off-by: Ross Allan <rallanpcl@gmail.com>