added CTRL-D to exit sequences