closing input stream of S3 Object to avoid TimeoutConnections