OS-3642 failed assert when exiting zlogin due to OS-3140 fix