delete connection if not needed anymore