*8787* Added missing wait for logout operation