Add death hooks for replica.