Marking exceptions as handled