Catch exception thrown by some other mods.