Simplify resource management by using Closer.
Simplify resource management by using Closer.

Summary:
Keeping track of resources to close using `Nullable` fields is
error prone, since creation and closure logic are far from each other
despite having strong coupling.

Reviewed By: sbalabanov

fbshipit-source-id: 5dd428cb38

brettwooldridge/buck,rmaz/buck,JoelMarcey/buck,Addepar/buck,zpao/buck,SeleniumHQ/buck,rmaz/buck,romanoid/buck,facebook/buck,Addepar/buck,kageiit/buck,brettwooldridge/buck,JoelMarcey/buck,JoelMarcey/buck,Addepar/buck,romanoid/buck,brettwooldridge/buck,JoelMarcey/buck,kageiit/buck,rmaz/buck,romanoid/buck,facebook/buck,romanoid/buck,Addepar/buck,SeleniumHQ/buck,SeleniumHQ/buck,facebook/buck,JoelMarcey/buck,rmaz/buck,SeleniumHQ/buck,brettwooldridge/buck,brettwooldridge/buck,JoelMarcey/buck,shs96c/buck,romanoid/buck,facebook/buck,shs96c/buck,shs96c/buck,brettwooldridge/buck,rmaz/buck,Addepar/buck,Addepar/buck,facebook/buck,zpao/buck,shs96c/buck,rmaz/buck,brettwooldridge/buck,kageiit/buck,shs96c/buck,JoelMarcey/buck,nguyentruongtho/buck,rmaz/buck,SeleniumHQ/buck,rmaz/buck,nguyentruongtho/buck,JoelMarcey/buck,Addepar/buck,romanoid/buck,brettwooldridge/buck,JoelMarcey/buck,facebook/buck,brettwooldridge/buck,Addepar/buck,romanoid/buck,rmaz/buck,SeleniumHQ/buck,SeleniumHQ/buck,JoelMarcey/buck,Addepar/buck,nguyentruongtho/buck,SeleniumHQ/buck,zpao/buck,romanoid/buck,romanoid/buck,nguyentruongtho/buck,SeleniumHQ/buck,shs96c/buck,brettwooldridge/buck,kageiit/buck,SeleniumHQ/buck,facebook/buck,brettwooldridge/buck,zpao/buck,shs96c/buck,brettwooldridge/buck,brettwooldridge/buck,rmaz/buck,romanoid/buck,romanoid/buck,Addepar/buck,Addepar/buck,kageiit/buck,zpao/buck,SeleniumHQ/buck,romanoid/buck,kageiit/buck,JoelMarcey/buck,nguyentruongtho/buck,SeleniumHQ/buck,rmaz/buck,Addepar/buck,rmaz/buck,shs96c/buck,shs96c/buck,zpao/buck,nguyentruongtho/buck,shs96c/buck,Addepar/buck,JoelMarcey/buck,SeleniumHQ/buck,zpao/buck,romanoid/buck,shs96c/buck,shs96c/buck,rmaz/buck,shs96c/buck,JoelMarcey/buck,kageiit/buck,nguyentruongtho/buck