Strange output from terminal `exit` command is this a virus?
This seems to be a change to Bash Session
in OS X El Capitan. See Bash sessions
Also see this question in SE.
had the same problem. Under terminal preferences->profiles -> shell. Select appropriate action to perform under "when the shell exits" menu. Fixed my issue.