added onLoadError exception and saving result