fixed issue with quiting at network problem