adding close for stream
Merge branch 'master' of https://github.com/wso2/jaggery