remove success variable from onException. Not relevant, probably also incorrect, and not used