throw exception when GL fit has failed, instead of exiting
(#22)