Update Connection.js

easy to catch these events from other places as well