Use generic exception rather than Oz-specific exception