Fix exception subclass in worker exception handler