using ioutils.closequietyly