SONAR-2291 Close InputStream properly after computing md5