Detect graceful and ungraceful leave of nodes

Except for coordinator.