Act nicely when using Ctrl+D to exit rather than raising a needless error