- Replaced close() with dispose() to close streams
- Fixed parameter typo