Added catch for Ctrl+D and Ctrl+C input prompts