update resumable io putfile, close inputstream first