Added abort condition for checkConnenction()