Adding Ctrl-D and exit action