SockJS: enhanced exception handling