switchedit cleanup on disconnect