Handle the connection problem