Properly end application when Ctrl+D is pressed.
Merge pull request #5 from r3c/master

Properly end application when Ctrl+D is pressed.