Fixed non-display of chain at end of program when run from command line.