close input stream in URI reader