Trigger rebalancing on last slave's death.

When the last slave dies in an active engine, force the rebalancing
because otherwise there could be stalled sessions in the queue which are
never going to be processed.