remove disconnected connections