Added configurable endOnQuit option and started log checking.