Fixes event connection close error never re-establishes connection.

Fix EventListener connection close check.
console log the event on error and connection.
Reload current page on connection close error event.