Protect against null pointers in InputStreamWrapper
Close input stream after usage