added facility to await for ZKConnection shutdown to complete RB=230412