Improved exception handling in scattering curve loading