Fixed TransportHandler resource leaks when bus is reinitialized
Fixed SSE error detection and reconnect logic. Tested on Firefox and Chrome.