stop io watcher before connection callback