Add support for disabling exceptions