add onDestroy to peermanager