Trap Ctrl+D; Use explicit exit command