History file written upon exit, correct output for top command