Maybe so. I wanted to make the smallest change possible to prevent unknown side effects. I tried using the `wasClean` property (which is set by this function https://github.com/sockjs/sockjs-client/blob/master/lib/utils.js#L76) but that didn't work. Primus expects `end` in some cases and `error` in others to operate correctly.