Added debug to delete connection routine