fixed peer cleanup