Add close() methods for WebP2P and HandshakeManager classes