Do not segfault on sending to closed socket
Do not segfault on sending to closed socket

carlin++ for reporting the error.
The problem was that send() and write() tested $!PIO for truthness,
but a closed socket does not evaluate to False on JVM and Moar

jonathanstowe/rakudo,tony-o/deb-rakudodaily,Leont/rakudo,salortiz/rakudo,jonathanstowe/rakudo,teodozjan/rakudo,sergot/rakudo,Gnouc/rakudo,nbrown/rakudo,ugexe/rakudo,azawawi/rakudo,samcv/rakudo,laben/rakudo,usev6/rakudo,samcv/rakudo,zhuomingliang/rakudo,tony-o/rakudo,sjn/rakudo,nbrown/rakudo,retupmoca/rakudo,Gnouc/rakudo,LLFourn/rakudo,niner/rakudo,tony-o/deb-rakudodaily,labster/rakudo,raydiak/rakudo,azawawi/rakudo,zostay/rakudo,MasterDuke17/rakudo,rakudo/rakudo,nbrown/rakudo,dankogai/rakudo,retupmoca/rakudo,samcv/rakudo,niner/rakudo,tony-o/rakudo,Gnouc/rakudo,teodozjan/rakudo,teodozjan/rakudo,cognominal/rakudo,usev6/rakudo,sjn/rakudo,awwaiid/rakudo,laben/rakudo,tony-o/rakudo,Gnouc/rakudo,Gnouc/rakudo,salortiz/rakudo,softmoth/rakudo,laben/rakudo,skids/rakudo,teodozjan/rakudo,paultcochrane/rakudo,lucasbuchala/rakudo,rakudo/rakudo,MasterDuke17/rakudo,tony-o/rakudo,raydiak/rakudo,labster/rakudo,sjn/rakudo,ugexe/rakudo,LLFourn/rakudo,ungrim97/rakudo,tony-o/deb-rakudodaily,retupmoca/rakudo,tbrowder/rakudo,salortiz/rakudo,lucasbuchala/rakudo,nunorc/rakudo,Leont/rakudo,b2gills/rakudo,usev6/rakudo,zostay/rakudo,ab5tract/rakudo,usev6/rakudo,samcv/rakudo,labster/rakudo,softmoth/rakudo,tbrowder/rakudo,dankogai/rakudo,Leont/rakudo,LLFourn/rakudo,awwaiid/rakudo,ungrim97/rakudo,zhuomingliang/rakudo,paultcochrane/rakudo,zostay/rakudo,azawawi/rakudo,tony-o/deb-rakudodaily,softmoth/rakudo,ab5tract/rakudo,awwaiid/rakudo,ugexe/rakudo,awwaiid/rakudo,tony-o/rakudo,retupmoca/rakudo,cygx/rakudo,tony-o/deb-rakudodaily,zhuomingliang/rakudo,raydiak/rakudo,awwaiid/rakudo,Leont/rakudo,cygx/rakudo,cognominal/rakudo,ugexe/rakudo,cognominal/rakudo,ungrim97/rakudo,nbrown/rakudo,niner/rakudo,softmoth/rakudo,ungrim97/rakudo,paultcochrane/rakudo,nunorc/rakudo,MasterDuke17/rakudo,b2gills/rakudo,lucasbuchala/rakudo,azawawi/rakudo,azawawi/rakudo,rakudo/rakudo,cognominal/rakudo,tony-o/deb-rakudodaily,zhuomingliang/rakudo,usev6/rakudo,ab5tract/rakudo,tbrowder/rakudo,paultcochrane/rakudo,sjn/rakudo,LLFourn/rakudo,sergot/rakudo,cognominal/rakudo,jonathanstowe/rakudo,ab5tract/rakudo,labster/rakudo,Gnouc/rakudo,niner/rakudo,MasterDuke17/rakudo,tbrowder/rakudo,rakudo/rakudo,b2gills/rakudo,tony-o/deb-rakudodaily,LLFourn/rakudo,sergot/rakudo,sjn/rakudo,cygx/rakudo,dankogai/rakudo,tbrowder/rakudo,dankogai/rakudo,skids/rakudo,lucasbuchala/rakudo,raydiak/rakudo,tony-o/rakudo,jonathanstowe/rakudo,tbrowder/rakudo,nbrown/rakudo,jonathanstowe/rakudo,paultcochrane/rakudo,rakudo/rakudo,b2gills/rakudo,skids/rakudo,salortiz/rakudo,ab5tract/rakudo,softmoth/rakudo,skids/rakudo,ungrim97/rakudo,zostay/rakudo,MasterDuke17/rakudo,labster/rakudo,rakudo/rakudo,lucasbuchala/rakudo,MasterDuke17/rakudo,salortiz/rakudo,skids/rakudo,nunorc/rakudo,b2gills/rakudo,ugexe/rakudo,samcv/rakudo,sergot/rakudo,cygx/rakudo,labster/rakudo,cygx/rakudo,nunorc/rakudo,nbrown/rakudo,laben/rakudo,salortiz/rakudo,dankogai/rakudo