ENTESB-693 - prevent printing to the console infinitely when ctrl-d is pressed