Add support for exceptions.