when the file that was opened has been read into buffer, the file should be closed Upstream-commit: 1500503b29d97257cf8c1789fc320e2409d9b394 Component: engine