close InputStream