added onLoadError exception and saving result
Merge pull request #1 from Zlob/master

added onLoadError exception and saving result