Fix exception usage.