Fixed duplicate code in triggering component handlers while handling an exception