[IMPR] uuse contextlib.closing to close the command_log_file
[IMPR] uuse contextlib.closing to close the command_log_file

Change-Id: I62368ee6920eadce0b8b276cb77b31ae84b7be78

wikimedia/pywikibot-core,wikimedia/pywikibot-core