Fix a warning of closing a stream.

To check whether it is possible to submit my change into the github.