Added option to ignore exceptions.