more robust wait for session socket to be available