Fixed the issue in stream close handling in zip file creation