Store inferior process history, save history on emacs kill.