made closePeer non-virtual and removed it from EndpointBase