add support for handling exceptions/errors in general