diff --git a/cccli/printer.py b/cccli/printer.py
index 5364d3e3067f76daac612c3cc75e957dbce5e585..b3fad6355dd814fe5a71ccf7e8fdd52178aedc0e 100644
--- a/cccli/printer.py
+++ b/cccli/printer.py
@@ -146,8 +146,13 @@ class Printer(object):
             raise cliError("Unable to ask question in non-interactive mode")
         h = list(self.history)
         self.history.clear()
+        r = ""
         try:
             r = self.getline(prompt)
+        except EOFError:
+            pass
+        except KeyboardInterrupt:
+            pass
         finally:
             self.history.load(h)
         return r