InputStream close on exception