BlueKeep exploit + Metasploit

Thanks for the reply,
It seems to me that these 2 exploits are meant to cause denial of service attack,
Metasploit version is for gaining shell access,
i am wondering how can i fix this " Exploit failed: Errno::EPIPE Broken pipe " issue