Fix decorators for when wrapped function raises an Exception.