Drop socket reference on close.
Drop socket reference on close.

Closes #1976
- Prevent the unbounded memory growth caused by maintaining
  a reference to the socket object that is created on every connection.

no1lov3sme/Ghost,Sebastian1011/Ghost,janvt/Ghost,shrimpy/Ghost,leonli/ghost,prosenjit-itobuz/Ghost,hyokosdeveloper/Ghost,omaracrystal/Ghost,rollokb/Ghost,shannonshsu/Ghost,praveenscience/Ghost,ASwitlyk/Ghost,icowan/Ghost,tandrewnichols/ghost,kortemy/Ghost,Yarov/yarov,trunk-studio/Ghost,weareleka/blog,yangli1990/Ghost,jomahoney/Ghost,ladislas/ghost,bsansouci/Ghost,Aaron1992/Ghost,jorgegilmoreira/ghost,JohnONolan/Ghost,vainglori0us/urban-fortnight,NovaDevelopGroup/Academy,UsmanJ/Ghost,panezhang/Ghost,memezilla/Ghost,MadeOnMars/Ghost,dqj/Ghost,katiefenn/Ghost,vloom/blog,chris-yoon90/Ghost,sangcu/Ghost,rollokb/Ghost,bitjson/Ghost,neynah/GhostSS,etdev/blog,JohnONolan/Ghost,qdk0901/Ghost,dbalders/Ghost,diogogmt/Ghost,lf2941270/Ghost,cqricky/Ghost,johnnymitch/Ghost,SachaG/bjjbot-blog,ryansukale/ux.ryansukale.com,woodyrew/Ghost,theonlypat/Ghost,ckousik/Ghost,situkangsayur/Ghost,pedroha/Ghost,bbmepic/Ghost,carlyledavis/Ghost,mohanambati/Ghost,Feitianyuan/Ghost,vloom/blog,vainglori0us/urban-fortnight,denzelwamburu/denzel.xyz,kmeurer/GhostAzureSetup,NikolaiIvanov/Ghost,mlabieniec/ghost-env,pollbox/ghostblog,ananthhh/Ghost,wspandihai/Ghost,jparyani/GhostSS,greenboxindonesia/Ghost,ignasbernotas/nullifer,kevinansfield/Ghost,hilerchyn/Ghost,v3rt1go/Ghost,exsodus3249/Ghost,GroupxDev/javaPress,ASwitlyk/Ghost,Kikobeats/Ghost,Remchi/Ghost,klinker-apps/ghost,llv22/Ghost,allanjsx/Ghost,pathayes/FoodBlog,shrimpy/Ghost,pollbox/ghostblog,flomotlik/Ghost,jgladch/taskworksource,Netazoic/bad-gateway,llv22/Ghost,etanxing/Ghost,Elektro1776/javaPress,pathayes/FoodBlog,mnitchie/Ghost,Alxandr/Blog,krahman/Ghost,rameshponnada/Ghost,Brunation11/Ghost,adam-paterson/blog,klinker-apps/ghost,bsansouci/Ghost,schematical/Ghost,yundt/seisenpenji,imjerrybao/Ghost,benstoltz/Ghost,etanxing/Ghost,skleung/blog,axross/ghost,theonlypat/Ghost,icowan/Ghost,jparyani/GhostSS,shannonshsu/Ghost,rchrd2/Ghost,makapen/Ghost,francisco-filho/Ghost,jiachenning/Ghost,load11/ghost,jgillich/Ghost,UnbounDev/Ghost,zackslash/Ghost,netputer/Ghost,ryanbrunner/crafters,epicmiller/pages,PaulBGD/Ghost-Plus,yundt/seisenpenji,ivantedja/ghost,singular78/Ghost,cicorias/Ghost,madole/diverse-learners,yanntech/Ghost,rmoorman/Ghost,Elektro1776/javaPress,allanjsx/Ghost,ljhsai/Ghost,syaiful6/Ghost,GroupxDev/javaPress,julianromera/Ghost,ballPointPenguin/Ghost,novaugust/Ghost,influitive/crafters,lf2941270/Ghost,tanbo800/Ghost,Smile42RU/Ghost,Japh/shortcoffee,gcamana/Ghost,smedrano/Ghost,camilodelvasto/herokughost,acburdine/Ghost,TryGhost/Ghost,mattchupp/blog,cobbspur/Ghost,dymx101/Ghost,Xibao-Lv/Ghost,cqricky/Ghost,cwonrails/Ghost,flomotlik/Ghost,jomofrodo/ccb-ghost,jiangjian-zh/Ghost,ignasbernotas/nullifer,epicmiller/pages,Kaenn/Ghost,sfpgmr/Ghost,cncodog/Ghost-zh-codog,k2byew/Ghost,velimir0xff/Ghost,lowkeyfred/Ghost,laispace/laiblog,jomahoney/Ghost,PDXIII/Ghost-FormMailer,Japh/shortcoffee,sajmoon/Ghost,chevex/undoctrinate,ivanoats/ivanstorck.com,jaswilli/Ghost,prosenjit-itobuz/Ghost,mttschltz/ghostblog,handcode7/Ghost,johnnymitch/Ghost,dymx101/Ghost,pedroha/Ghost,notno/Ghost,xiongjungit/Ghost,zumobi/Ghost,ryanbrunner/crafters,telco2011/Ghost,sergeylukin/Ghost,davidenq/Ghost-Blog,trunk-studio/Ghost,cysys/ghost-openshift,optikalefx/Ghost,cncodog/Ghost-zh-codog,Azzurrio/Ghost,delgermurun/Ghost,TribeMedia/Ghost,situkangsayur/Ghost,ryansukale/ux.ryansukale.com,lethalbrains/Ghost,tidyui/Ghost,Gargol/Ghost,psychobunny/Ghost,ygbhf/Ghost,lukekhamilton/Ghost,vishnuharidas/Ghost,camilodelvasto/herokughost,kortemy/Ghost,Coding-House/Ghost,Trendy/Ghost,v3rt1go/Ghost,jacostag/Ghost,jomofrodo/ccb-ghost,daimaqiao/Ghost-Bridge,dggr/Ghost-sr,Kikobeats/Ghost,gleneivey/Ghost,JulienBrks/Ghost,BayPhillips/Ghost,diancloud/Ghost,tksander/Ghost,mtvillwock/Ghost,STANAPO/Ghost,JohnONolan/Ghost,kolorahl/Ghost,leninhasda/Ghost,tmp-reg/Ghost,stridespace/Ghost,yangli1990/Ghost,qdk0901/Ghost,karmakaze/Ghost,rito/Ghost,janvt/Ghost,codeincarnate/Ghost,melissaroman/ghost-blog,stridespace/Ghost,nmukh/Ghost,AlexKVal/Ghost,devleague/uber-hackathon,patterncoder/patterncoder,sunh3/Ghost,petersucks/blog,jin/Ghost,PeterCxy/Ghost,schematical/Ghost,mhhf/ghost-latex,lanffy/Ghost,xiongjungit/Ghost,thehogfather/Ghost,Feitianyuan/Ghost,hoxoa/Ghost,alecho/Ghost,neynah/GhostSS,daihuaye/Ghost,ballPointPenguin/Ghost,edsadr/Ghost,duyetdev/islab,Alxandr/Blog,tadityar/Ghost,skmezanul/Ghost,mttschltz/ghostblog,virtuallyearthed/Ghost,benstoltz/Ghost,Alxandr/Blog,novaugust/Ghost,mayconxhh/Ghost,madole/diverse-learners,kwangkim/Ghost,Romdeau/Ghost,nneko/Ghost,singular78/Ghost,patrickdbakke/ghost-spa,jorgegilmoreira/ghost,kolorahl/Ghost,carlosmtx/Ghost,SachaG/bjjbot-blog,ddeveloperr/Ghost,thinq4yourself/Unmistakable-Blog,javorszky/Ghost,javimolla/Ghost,jeonghwan-kim/Ghost,Gargol/Ghost,GarrethDottin/Habits-Design,Elektro1776/javaPress,sebgie/Ghost,Jai-Chaudhary/Ghost,Romdeau/Ghost,mtvillwock/Ghost,ygbhf/Ghost,javorszky/Ghost,veyo-care/Ghost,morficus/Ghost,VillainyStudios/Ghost,cwonrails/Ghost,PeterCxy/Ghost,ManRueda/Ghost,NamedGod/Ghost,wangjun/Ghost,darvelo/Ghost,lukw00/Ghost,veyo-care/Ghost,NamedGod/Ghost,daihuaye/Ghost,stridespace/Ghost,cwonrails/Ghost,jaguerra/Ghost,ErisDS/Ghost,dbalders/Ghost,nmukh/Ghost,delgermurun/Ghost,blankmaker/Ghost,bitjson/Ghost,atandon/Ghost,acburdine/Ghost,ericbenson/GhostAzureSetup,javimolla/Ghost,kevinansfield/Ghost,mayconxhh/Ghost,rameshponnada/Ghost,atandon/Ghost,ManRueda/manrueda-blog,pensierinmusica/Ghost,smaty1/Ghost,nneko/Ghost,thomasalrin/Ghost,floofydoug/Ghost,ErisDS/Ghost,obsoleted/Ghost,camilodelvasto/localghost,karmakaze/Ghost,PepijnSenders/whatsontheotherside,weareleka/blog,sebgie/Ghost,PDXIII/Ghost-FormMailer,panezhang/Ghost,developer-prosenjit/Ghost,Bunk/Ghost,bisoe/Ghost,dYale/blog,YY030913/Ghost,KnowLoading/Ghost,k2byew/Ghost,JonathanZWhite/Ghost,AlexKVal/Ghost,TryGhost/Ghost,darvelo/Ghost,RufusMbugua/TheoryOfACoder,hnq90/Ghost,tidyui/Ghost,bosung90/Ghost,lanffy/Ghost,petersucks/blog,GroupxDev/javaPress,devleague/uber-hackathon,VillainyStudios/Ghost,ckousik/Ghost,claudiordgz/Ghost,syaiful6/Ghost,bbmepic/Ghost,ineitzke/Ghost,laispace/laiblog,sifatsultan/js-ghost,smedrano/Ghost,rchrd2/Ghost,rmoorman/Ghost,ljhsai/Ghost,Bunk/Ghost,letsjustfixit/Ghost,claudiordgz/Ghost,Netazoic/bad-gateway,arvidsvensson/Ghost,sebgie/Ghost,jomofrodo/ccb-ghost,melissaroman/ghost-blog,SkynetInc/steam,alecho/Ghost,sangcu/Ghost,carlosmtx/Ghost,singular78/Ghost,Jai-Chaudhary/Ghost,ashishapy/ghostpy,Klaudit/Ghost,jacostag/Ghost,schneidmaster/theventriloquist.us,jaguerra/Ghost,jparyani/GhostSS,rito/Ghost,codeincarnate/Ghost,denzelwamburu/denzel.xyz,omaracrystal/Ghost,djensen47/Ghost,telco2011/Ghost,pbevin/Ghost,olsio/Ghost,disordinary/Ghost,JonSmith/Ghost,Smile42RU/Ghost,bosung90/Ghost,barbastan/Ghost,Azzurrio/Ghost,chris-yoon90/Ghost,dggr/Ghost-sr,MadeOnMars/Ghost,ITJesse/Ghost-zh,diogogmt/Ghost,optikalefx/Ghost,DesenTao/Ghost,ClarkGH/Ghost,zeropaper/Ghost,hoxoa/Ghost,rafaelstz/Ghost,ManRueda/Ghost,r1N0Xmk2/Ghost,UnbounDev/Ghost,r14r/fork_nodejs_ghost,kwangkim/Ghost,lowkeyfred/Ghost,manishchhabra/Ghost,cicorias/Ghost,tyrikio/Ghost,mnitchie/Ghost,ashishapy/ghostpy,johngeorgewright/blog.j-g-w.info,carlyledavis/Ghost,beautyOfProgram/Ghost,ghostchina/Ghost-zh,netputer/Ghost,notno/Ghost,trepafi/ghost-base,thomasalrin/Ghost,johngeorgewright/blog.j-g-w.info,metadevfoundation/Ghost,lethalbrains/Ghost,gabfssilva/Ghost,olsio/Ghost,SkynetInc/steam,vainglori0us/urban-fortnight,edurangel/Ghost,davidenq/Ghost-Blog,skleung/blog,ManRueda/manrueda-blog,praveenscience/Ghost,ThorstenHans/Ghost,PepijnSenders/whatsontheotherside,obsoleted/Ghost,diancloud/Ghost,e10/Ghost,telco2011/Ghost,JonathanZWhite/Ghost,rouanw/Ghost,wallmarkets/Ghost,Sebastian1011/Ghost,letsjustfixit/Ghost,tandrewnichols/ghost,anijap/PhotoGhost,FredericBernardo/Ghost,AnthonyCorrado/Ghost,edsadr/Ghost,jamesslock/Ghost,bastianbin/Ghost,mlabieniec/ghost-env,Rovak/Ghost,greyhwndz/Ghost,DesenTao/Ghost,cncodog/Ghost-zh-codog,LeandroNascimento/Ghost,daimaqiao/Ghost-Bridge,liftup/ghost,tmp-reg/Ghost,tuan/Ghost,akveo/akveo-blog,bisoe/Ghost,NikolaiIvanov/Ghost,cysys/ghost-openshift,dggr/Ghost-sr,Remchi/Ghost,woodyrew/Ghost,imjerrybao/Ghost,BayPhillips/Ghost,MrMaksimize/sdg1,kaiqigong/Ghost,fredeerock/atlabghost,Loyalsoldier/Ghost,hilerchyn/Ghost,liftup/ghost,jin/Ghost,Coding-House/Ghost,zhiyishou/Ghost,katrotz/blog.katrotz.space,kortemy/Ghost,skmezanul/Ghost,Dnlyc/Ghost,greenboxindonesia/Ghost,Yarov/yarov,RufusMbugua/TheoryOfACoder,achimos/ghost_as,uniqname/everydaydelicious,akveo/akveo-blog,makapen/Ghost,Japh/Ghost,davidenq/Ghost-Blog,ineitzke/Ghost,PaulBGD/Ghost-Plus,ThorstenHans/Ghost,gleneivey/Ghost,e10/Ghost,exsodus3249/Ghost,sunh3/Ghost,mattchupp/blog,floofydoug/Ghost,mohanambati/Ghost,duyetdev/islab,Xibao-Lv/Ghost,ManRueda/manrueda-blog,morficus/Ghost,francisco-filho/Ghost,zhiyishou/Ghost,lcamacho/Ghost,rizkyario/Ghost,flpms/ghost-ad,STANAPO/Ghost,jeonghwan-kim/Ghost,bastianbin/Ghost,dai-shi/Ghost,AnthonyCorrado/Ghost,edurangel/Ghost,kaychaks/kaushikc.org,flpms/ghost-ad,r14r/fork_nodejs_ghost,katrotz/blog.katrotz.space,hnq90/Ghost,sfpgmr/Ghost,jamesslock/Ghost,dai-shi/Ghost,andrewconnell/Ghost,GarrethDottin/Habits-Design,manishchhabra/Ghost,allanjsx/Ghost,jgillich/Ghost,rizkyario/Ghost,UsmanJ/Ghost,sajmoon/Ghost,lukaszklis/Ghost,letsjustfixit/Ghost,YY030913/Ghost,Kaenn/Ghost,achimos/ghost_as,wemakeweb/Ghost,psychobunny/Ghost,NovaDevelopGroup/Academy,barbastan/Ghost,sergeylukin/Ghost,mhhf/ghost-latex,beautyOfProgram/Ghost,ITJesse/Ghost-zh,dylanchernick/ghostblog,schneidmaster/theventriloquist.us,davidmenger/nodejsfan,neynah/GhostSS,dbalders/Ghost,sankumsek/Ghost-ashram,mdbw/ghost,zumobi/Ghost,augbog/Ghost,ngosinafrica/SiteForNGOs,kevinansfield/Ghost,djensen47/Ghost,KnowLoading/Ghost,Rovak/Ghost,FredericBernardo/Ghost,Loyalsoldier/Ghost,camilodelvasto/localghost,mlabieniec/ghost-env,r1N0Xmk2/Ghost,gcamana/Ghost,influitive/crafters,adam-paterson/blog,aroneiermann/GhostJade,andrewconnell/Ghost,tksander/Ghost,pbevin/Ghost,aroneiermann/GhostJade,dYale/blog,aschmoe/jesse-ghost-app,TryGhost/Ghost,ericbenson/GhostAzureSetup,laispace/laiblog,ananthhh/Ghost,gabfssilva/Ghost,julianromera/Ghost,lukaszklis/Ghost,Dnlyc/Ghost,axross/ghost,dqj/Ghost,ladislas/ghost,aschmoe/jesse-ghost-app,dylanchernick/ghostblog,ivanoats/ivanstorck.com,mdbw/ghost,kaiqigong/Ghost,TribeMedia/Ghost,mohanambati/Ghost,ddeveloperr/Ghost,sifatsultan/js-ghost,jiangjian-zh/Ghost,tadityar/Ghost,rafaelstz/Ghost,Trendy/Ghost,novaugust/Ghost,alexandrachifor/Ghost,thehogfather/Ghost,Brunation11/Ghost,leonli/ghost,IbrahimAmin/Ghost,leonli/ghost,wangjun/Ghost,yanntech/Ghost,memezilla/Ghost,no1lov3sme/Ghost,LeandroNascimento/Ghost,ghostchina/Ghost-zh,AileenCGN/Ghost,devleague/uber-hackathon,sceltoas/Ghost,JonSmith/Ghost,BlueHatbRit/Ghost,developer-prosenjit/Ghost,virtuallyearthed/Ghost,IbrahimAmin/Ghost,ngosinafrica/SiteForNGOs,Netazoic/bad-gateway,Klaudit/Ghost,Shauky/Ghost,thinq4yourself/Unmistakable-Blog,Kikobeats/Ghost,rizkyario/Ghost,smaty1/Ghost,cysys/ghost-openshift,davidmenger/nodejsfan,hyokosdeveloper/Ghost,acburdine/Ghost,metadevfoundation/Ghost,tchapi/igneet-blog,sceltoas/Ghost,riyadhalnur/Ghost,ManRueda/Ghost,riyadhalnur/Ghost,JulienBrks/Ghost,daimaqiao/Ghost-Bridge,uploadcare/uploadcare-ghost-demo,pensierinmusica/Ghost,tyrikio/Ghost,jiachenning/Ghost,augbog/Ghost,etdev/blog,phillipalexander/Ghost,patterncoder/patterncoder,Japh/Ghost,disordinary/Ghost,handcode7/Ghost,load11/ghost,greyhwndz/Ghost,blankmaker/Ghost,dgem/Ghost,anijap/PhotoGhost,hnarayanan/narayanan.co,jaswilli/Ghost,kaychaks/kaushikc.org,ErisDS/Ghost,zackslash/Ghost,fredeerock/atlabghost,velimir0xff/Ghost,Kaenn/Ghost,rouanw/Ghost,arvidsvensson/Ghost,phillipalexander/Ghost,dgem/Ghost,lukw00/Ghost,Netazoic/bad-gateway,hnarayanan/narayanan.co,wallmarkets/Ghost,NovaDevelopGroup/Academy,tanbo800/Ghost,leninhasda/Ghost,ClarkGH/Ghost,lukekhamilton/Ghost,zeropaper/Ghost,wemakeweb/Ghost,BlueHatbRit/Ghost,wspandihai/Ghost,jorgegilmoreira/ghost,uploadcare/uploadcare-ghost-demo