Rework connection state machine to support IE.