add disconnect event listener