delete connection on device when disconnected