clean out index on disconnect