Close stream in case of exception
Merge pull request #853 from erwinwinder/master

Close stream in case of exception