handling of connectivity errors