Added Ctrl-D handler. Just calls save and quit