Fix close() doesn't close base stream.

Signed-off-by: yushijinhun <yushijinhun@gmail.com>
Merge branch 'fix-close'