made closePeer a non-pure virtual method