Added ConnectionError trap