make sure logger file is closed
make sure logger file is closed

Reviewed By: alexander-kirillov

Differential Revision: D24240728

fbshipit-source-id: 7c056415fead65be452adbb486621b0167827ec6

facebookresearch/detectron2,facebookresearch/detectron2,facebookresearch/detectron2