Avoid NPE if CTRL-D is pressed while running the console.