Allow TrainExtensions to raise Exception to stop training.
Document changes.
Merge pull request #497 from dwf/train_extension_quit

Allow TrainExtensions to raise Exception to stop training.