Small change to help file transfers close clean