MDL-41630 oauth: Throw exception instead of dying on error