Removing connect event handler