prevent communication if connection fails