Robustify ensure() function against exceptions.
Move session ID creation to the websocket handler so we don't need a special case for pipeline affinities.
Ease up on the logging.