revert peer connect/disconnect changes