BulletSim: fix an occasional crash with flushing log files.
BulletSim: add the reset of the last commit for flush log file problems.
Fix small typo in one log message.