STS-3496: closing content file stream to avoid file input stream leaks and file locks on windows