Protect against null pointers in InputStreamWrapper
Close input stream after usage
Merge pull request #65 from demon/input-stream

Close input stream after usage