Fix bug #67496 Save command history when exiting interactive shell with control-c