Triggering connection 'close' event fix