fix handling nodes leaving while waiting for response
add sample program
handle leadership when quorum is lost