BearCollectorTest: Close filehandles
BearCollectorTest: Close filehandles

This makes all tests pass on windows.

AbdealiJK/coala,JohnS-01/coala,Asnelchristian/coala,aptrishu/coala,Nosferatul/coala,mr-karan/coala,impmihai/coala,sagark123/coala,tushar-rishav/coala,tushar-rishav/coala,swatilodha/coala,rimacone/testing2,incorrectusername/coala,mr-karan/coala,SanketDG/coala,Tanmay28/coala,AdeshAtole/coala,rresol/coala,scriptnull/coala,karansingh1559/coala,refeed/coala,ayushin78/coala,arjunsinghy96/coala,nemaniarjun/coala,arafsheikh/coala,Shade5/coala,FeodorFitsner/coala,MattAllmendinger/coala,damngamerz/coala,AbdealiJK/coala,Tanmay28/coala,sagark123/coala,yashLadha/coala,sils1297/coala,JohnS-01/coala,FeodorFitsner/coala,SambitAcharya/coala,RJ722/coala,sophiavanvalkenburg/coala,Tanmay28/coala,NalinG/coala,d6e/coala,Uran198/coala,yashLadha/coala,sils1297/coala,ayushin78/coala,arush0311/coala,arush0311/coala,aptrishu/coala,arush0311/coala,lonewolf07/coala,saurabhiiit/coala,kartikeys98/coala,andreimacavei/coala,arafsheikh/coala,damngamerz/coala,scottbelden/coala,Nosferatul/coala,saurabhiiit/coala,Tanmay28/coala,NalinG/coala,Tanmay28/coala,rimacone/testing2,arafsheikh/coala,netman92/coala,MattAllmendinger/coala,coala/coala,dagdaggo/coala,nemaniarjun/coala,meetmangukiya/coala,scriptnull/coala,Shade5/coala,Tanmay28/coala,NiklasMM/coala,yland/coala,svsn2117/coala,yashtrivedi96/coala,stevemontana1980/coala,ManjiriBirajdar/coala,vinc456/coala,scriptnull/coala,refeed/coala,shreyans800755/coala,karansingh1559/coala,NiklasMM/coala,NiklasMM/coala,damngamerz/coala,sudheesh001/coala,yland/coala,kartikeys98/coala,NalinG/coala,SambitAcharya/coala,djkonro/coala,coala-analyzer/coala,NalinG/coala,d6e/coala,yland/coala,meetmangukiya/coala,MariosPanag/coala,AdeshAtole/coala,Uran198/coala,SanketDG/coala,tltuan/coala,coala-analyzer/coala,RJ722/coala,CruiseDevice/coala,stevemontana1980/coala,jayvdb/coala,svsn2117/coala,jayvdb/coala,SambitAcharya/coala,scriptnull/coala,svsn2117/coala,dagdaggo/coala,djkonro/coala,scriptnull/coala,coala/coala,shreyans800755/coala,FeodorFitsner/coala,netman92/coala,vinc456/coala,JohnS-01/coala,Asnelchristian/coala,CruiseDevice/coala,arjunsinghy96/coala,abhiroyg/coala,kartikeys98/coala,scriptnull/coala,arjunsinghy96/coala,stevemontana1980/coala,incorrectusername/coala,jayvdb/coala,sudheesh001/coala,andreimacavei/coala,refeed/coala,Balaji2198/coala,ManjiriBirajdar/coala,shreyans800755/coala,impmihai/coala,dagdaggo/coala,Shade5/coala,Asalle/coala,tltuan/coala,tushar-rishav/coala,Tanmay28/coala,andreimacavei/coala,abhiroyg/coala,netman92/coala,SambitAcharya/coala,coala/coala,Asalle/coala,lonewolf07/coala,NalinG/coala,Asnelchristian/coala,saurabhiiit/coala,aptrishu/coala,scriptnull/coala,Balaji2198/coala,sophiavanvalkenburg/coala,yashLadha/coala,rimacone/testing2,mr-karan/coala,lonewolf07/coala,AdeshAtole/coala,d6e/coala,AbdealiJK/coala,NalinG/coala,sagark123/coala,scottbelden/coala,yashtrivedi96/coala,Tanmay28/coala,coala-analyzer/coala,SambitAcharya/coala,ayushin78/coala,RJ722/coala,CruiseDevice/coala,Nosferatul/coala,karansingh1559/coala,ManjiriBirajdar/coala,djkonro/coala,abhiroyg/coala,swatilodha/coala,Balaji2198/coala,NalinG/coala,meetmangukiya/coala,sudheesh001/coala,MattAllmendinger/coala,MariosPanag/coala,SambitAcharya/coala,SambitAcharya/coala,incorrectusername/coala,Asalle/coala,SanketDG/coala,rresol/coala,sophiavanvalkenburg/coala,swatilodha/coala,yashtrivedi96/coala,impmihai/coala,tltuan/coala,vinc456/coala,scottbelden/coala,Uran198/coala,MariosPanag/coala,sils1297/coala,rresol/coala,nemaniarjun/coala