Add safety code.

- Some mods (ExtraUtilities) pass garbage data and do not properly
  catch exceptions.