Made ctrl-d exit as expected