Fix exception subclassing