Refixes the sync shutdown bug to work with multithreading.
Refixes the sync shutdown bug to work with multithreading.

dparnell/rethinkdb,wojons/rethinkdb,matthaywardwebdesign/rethinkdb,pap/rethinkdb,marshall007/rethinkdb,pap/rethinkdb,elkingtonmcb/rethinkdb,sontek/rethinkdb,pap/rethinkdb,ajose01/rethinkdb,jesseditson/rethinkdb,wkennington/rethinkdb,matthaywardwebdesign/rethinkdb,matthaywardwebdesign/rethinkdb,pap/rethinkdb,yakovenkodenis/rethinkdb,gavioto/rethinkdb,grandquista/rethinkdb,lenstr/rethinkdb,wkennington/rethinkdb,rrampage/rethinkdb,lenstr/rethinkdb,wkennington/rethinkdb,sbusso/rethinkdb,ajose01/rethinkdb,niieani/rethinkdb,yakovenkodenis/rethinkdb,tempbottle/rethinkdb,KSanthanam/rethinkdb,KSanthanam/rethinkdb,jfriedly/rethinkdb,rrampage/rethinkdb,grandquista/rethinkdb,captainpete/rethinkdb,spblightadv/rethinkdb,spblightadv/rethinkdb,elkingtonmcb/rethinkdb,losywee/rethinkdb,mcanthony/rethinkdb,JackieXie168/rethinkdb,captainpete/rethinkdb,RubenKelevra/rethinkdb,jfriedly/rethinkdb,4talesa/rethinkdb,Qinusty/rethinkdb,elkingtonmcb/rethinkdb,spblightadv/rethinkdb,alash3al/rethinkdb,elkingtonmcb/rethinkdb,pap/rethinkdb,Qinusty/rethinkdb,jesseditson/rethinkdb,4talesa/rethinkdb,nviennot/rethinkdb,scripni/rethinkdb,bchavez/rethinkdb,scripni/rethinkdb,niieani/rethinkdb,wujf/rethinkdb,losywee/rethinkdb,marshall007/rethinkdb,greyhwndz/rethinkdb,bchavez/rethinkdb,gdi2290/rethinkdb,wojons/rethinkdb,rrampage/rethinkdb,gavioto/rethinkdb,sebadiaz/rethinkdb,eliangidoni/rethinkdb,wujf/rethinkdb,Qinusty/rethinkdb,jmptrader/rethinkdb,nviennot/rethinkdb,dparnell/rethinkdb,Wilbeibi/rethinkdb,RubenKelevra/rethinkdb,mcanthony/rethinkdb,scripni/rethinkdb,niieani/rethinkdb,jmptrader/rethinkdb,RubenKelevra/rethinkdb,ayumilong/rethinkdb,robertjpayne/rethinkdb,marshall007/rethinkdb,ayumilong/rethinkdb,bpradipt/rethinkdb,urandu/rethinkdb,sontek/rethinkdb,sontek/rethinkdb,dparnell/rethinkdb,alash3al/rethinkdb,sebadiaz/rethinkdb,gavioto/rethinkdb,ayumilong/rethinkdb,losywee/rethinkdb,mquandalle/rethinkdb,dparnell/rethinkdb,ayumilong/rethinkdb,sontek/rethinkdb,bchavez/rethinkdb,greyhwndz/rethinkdb,bpradipt/rethinkdb,sbusso/rethinkdb,wojons/rethinkdb,AtnNn/rethinkdb,yakovenkodenis/rethinkdb,victorbriz/rethinkdb,captainpete/rethinkdb,sbusso/rethinkdb,yaolinz/rethinkdb,wkennington/rethinkdb,wujf/rethinkdb,wujf/rethinkdb,urandu/rethinkdb,RubenKelevra/rethinkdb,4talesa/rethinkdb,sebadiaz/rethinkdb,captainpete/rethinkdb,4talesa/rethinkdb,greyhwndz/rethinkdb,tempbottle/rethinkdb,jfriedly/rethinkdb,mbroadst/rethinkdb,rrampage/rethinkdb,pap/rethinkdb,wujf/rethinkdb,lenstr/rethinkdb,JackieXie168/rethinkdb,grandquista/rethinkdb,yaolinz/rethinkdb,bpradipt/rethinkdb,niieani/rethinkdb,eliangidoni/rethinkdb,grandquista/rethinkdb,matthaywardwebdesign/rethinkdb,marshall007/rethinkdb,niieani/rethinkdb,matthaywardwebdesign/rethinkdb,greyhwndz/rethinkdb,bchavez/rethinkdb,yaolinz/rethinkdb,marshall007/rethinkdb,grandquista/rethinkdb,catroot/rethinkdb,ajose01/rethinkdb,scripni/rethinkdb,AntouanK/rethinkdb,AntouanK/rethinkdb,wojons/rethinkdb,marshall007/rethinkdb,mquandalle/rethinkdb,sebadiaz/rethinkdb,mbroadst/rethinkdb,nviennot/rethinkdb,ayumilong/rethinkdb,yaolinz/rethinkdb,grandquista/rethinkdb,JackieXie168/rethinkdb,eliangidoni/rethinkdb,gdi2290/rethinkdb,losywee/rethinkdb,urandu/rethinkdb,wujf/rethinkdb,bpradipt/rethinkdb,alash3al/rethinkdb,jmptrader/rethinkdb,lenstr/rethinkdb,mbroadst/rethinkdb,victorbriz/rethinkdb,RubenKelevra/rethinkdb,spblightadv/rethinkdb,losywee/rethinkdb,captainpete/rethinkdb,gavioto/rethinkdb,robertjpayne/rethinkdb,Wilbeibi/rethinkdb,ajose01/rethinkdb,matthaywardwebdesign/rethinkdb,alash3al/rethinkdb,scripni/rethinkdb,mbroadst/rethinkdb,mbroadst/rethinkdb,marshall007/rethinkdb,KSanthanam/rethinkdb,Qinusty/rethinkdb,jfriedly/rethinkdb,grandquista/rethinkdb,tempbottle/rethinkdb,robertjpayne/rethinkdb,sbusso/rethinkdb,AtnNn/rethinkdb,AntouanK/rethinkdb,jmptrader/rethinkdb,alash3al/rethinkdb,4talesa/rethinkdb,AntouanK/rethinkdb,bchavez/rethinkdb,sbusso/rethinkdb,gdi2290/rethinkdb,wojons/rethinkdb,matthaywardwebdesign/rethinkdb,tempbottle/rethinkdb,sbusso/rethinkdb,robertjpayne/rethinkdb,gavioto/rethinkdb,bpradipt/rethinkdb,rrampage/rethinkdb,mcanthony/rethinkdb,jesseditson/rethinkdb,dparnell/rethinkdb,eliangidoni/rethinkdb,gavioto/rethinkdb,gavioto/rethinkdb,eliangidoni/rethinkdb,niieani/rethinkdb,catroot/rethinkdb,Qinusty/rethinkdb,victorbriz/rethinkdb,niieani/rethinkdb,sontek/rethinkdb,tempbottle/rethinkdb,gavioto/rethinkdb,lenstr/rethinkdb,AntouanK/rethinkdb,jmptrader/rethinkdb,jmptrader/rethinkdb,jesseditson/rethinkdb,losywee/rethinkdb,dparnell/rethinkdb,nviennot/rethinkdb,grandquista/rethinkdb,yaolinz/rethinkdb,mcanthony/rethinkdb,KSanthanam/rethinkdb,spblightadv/rethinkdb,jesseditson/rethinkdb,wojons/rethinkdb,KSanthanam/rethinkdb,Qinusty/rethinkdb,JackieXie168/rethinkdb,mquandalle/rethinkdb,mbroadst/rethinkdb,mcanthony/rethinkdb,ayumilong/rethinkdb,victorbriz/rethinkdb,Wilbeibi/rethinkdb,scripni/rethinkdb,bchavez/rethinkdb,bpradipt/rethinkdb,yaolinz/rethinkdb,sbusso/rethinkdb,bchavez/rethinkdb,robertjpayne/rethinkdb,Wilbeibi/rethinkdb,tempbottle/rethinkdb,victorbriz/rethinkdb,ajose01/rethinkdb,captainpete/rethinkdb,urandu/rethinkdb,alash3al/rethinkdb,ajose01/rethinkdb,AtnNn/rethinkdb,scripni/rethinkdb,robertjpayne/rethinkdb,bchavez/rethinkdb,urandu/rethinkdb,catroot/rethinkdb,greyhwndz/rethinkdb,4talesa/rethinkdb,yaolinz/rethinkdb,jfriedly/rethinkdb,AtnNn/rethinkdb,Qinusty/rethinkdb,catroot/rethinkdb,robertjpayne/rethinkdb,wojons/rethinkdb,yakovenkodenis/rethinkdb,ajose01/rethinkdb,mquandalle/rethinkdb,sebadiaz/rethinkdb,JackieXie168/rethinkdb,elkingtonmcb/rethinkdb,mquandalle/rethinkdb,RubenKelevra/rethinkdb,marshall007/rethinkdb,nviennot/rethinkdb,mcanthony/rethinkdb,victorbriz/rethinkdb,jfriedly/rethinkdb,elkingtonmcb/rethinkdb,JackieXie168/rethinkdb,alash3al/rethinkdb,urandu/rethinkdb,alash3al/rethinkdb,Wilbeibi/rethinkdb,losywee/rethinkdb,greyhwndz/rethinkdb,dparnell/rethinkdb,robertjpayne/rethinkdb,pap/rethinkdb,wujf/rethinkdb,Qinusty/rethinkdb,eliangidoni/rethinkdb,yakovenkodenis/rethinkdb,catroot/rethinkdb,KSanthanam/rethinkdb,matthaywardwebdesign/rethinkdb,gdi2290/rethinkdb,AtnNn/rethinkdb,Wilbeibi/rethinkdb,losywee/rethinkdb,lenstr/rethinkdb,wkennington/rethinkdb,sontek/rethinkdb,bpradipt/rethinkdb,ayumilong/rethinkdb,RubenKelevra/rethinkdb,mquandalle/rethinkdb,AtnNn/rethinkdb,Wilbeibi/rethinkdb,JackieXie168/rethinkdb,elkingtonmcb/rethinkdb,JackieXie168/rethinkdb,catroot/rethinkdb,gdi2290/rethinkdb,AtnNn/rethinkdb,rrampage/rethinkdb,AntouanK/rethinkdb,captainpete/rethinkdb,yakovenkodenis/rethinkdb,wkennington/rethinkdb,jmptrader/rethinkdb,bpradipt/rethinkdb,Qinusty/rethinkdb,greyhwndz/rethinkdb,spblightadv/rethinkdb,RubenKelevra/rethinkdb,tempbottle/rethinkdb,lenstr/rethinkdb,yakovenkodenis/rethinkdb,wojons/rethinkdb,bchavez/rethinkdb,eliangidoni/rethinkdb,urandu/rethinkdb,bpradipt/rethinkdb,mbroadst/rethinkdb,KSanthanam/rethinkdb,mquandalle/rethinkdb,pap/rethinkdb,jesseditson/rethinkdb,nviennot/rethinkdb,lenstr/rethinkdb,jesseditson/rethinkdb,jmptrader/rethinkdb,elkingtonmcb/rethinkdb,spblightadv/rethinkdb,sontek/rethinkdb,urandu/rethinkdb,mcanthony/rethinkdb,yakovenkodenis/rethinkdb,sebadiaz/rethinkdb,jfriedly/rethinkdb,jesseditson/rethinkdb,sebadiaz/rethinkdb,dparnell/rethinkdb,grandquista/rethinkdb,mcanthony/rethinkdb,nviennot/rethinkdb,robertjpayne/rethinkdb,gdi2290/rethinkdb,AntouanK/rethinkdb,ajose01/rethinkdb,gdi2290/rethinkdb,sontek/rethinkdb,Wilbeibi/rethinkdb,sebadiaz/rethinkdb,mbroadst/rethinkdb,victorbriz/rethinkdb,captainpete/rethinkdb,mbroadst/rethinkdb,greyhwndz/rethinkdb,niieani/rethinkdb,JackieXie168/rethinkdb,yaolinz/rethinkdb,rrampage/rethinkdb,victorbriz/rethinkdb,sbusso/rethinkdb,AtnNn/rethinkdb,4talesa/rethinkdb,rrampage/rethinkdb,AntouanK/rethinkdb,scripni/rethinkdb,wkennington/rethinkdb,4talesa/rethinkdb,mquandalle/rethinkdb,nviennot/rethinkdb,eliangidoni/rethinkdb,ayumilong/rethinkdb,tempbottle/rethinkdb,catroot/rethinkdb,dparnell/rethinkdb,jfriedly/rethinkdb,eliangidoni/rethinkdb,catroot/rethinkdb,KSanthanam/rethinkdb,spblightadv/rethinkdb,wkennington/rethinkdb