• Fixes a problem where connectionClosedOnError may not fire events and leave provider in connected state event if its connection is closed.