SERVER-11560 Close file handle in shell util