Close InputStream and Reader where needed