minor; could be `lifecycleState.isInstanceOf[ErrorEmitted]`, not sure matching is worth it here