[webstack] improved error handling in websocket handler;
[session] improved logging;