Checked for connection errors