Creating HttpResponseCache causes StrictMode violation
When cache is created I'm having this violation:

06-18 11:19:42.607: E/StrictMode(4300): A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
06-18 11:19:42.607: E/StrictMode(4300): java.lang.Throwable: Explicit termination method 'close' not called
06-18 11:19:42.607: E/StrictMode(4300):     at dalvik.system.CloseGuard.open(CloseGuard.java:184)
06-18 11:19:42.607: E/StrictMode(4300):     at java.io.FileOutputStream.<init>(FileOutputStream.java:90)
06-18 11:19:42.607: E/StrictMode(4300):     at com.squareup.okhttp.internal.DiskLruCache.open(DiskLruCache.java:226)
06-18 11:19:42.607: E/StrictMode(4300):     at com.squareup.okhttp.HttpResponseCache.<init>(HttpResponseCache.java:171)

diff --git a/okhttp/src/main/java/com/squareup/okhttp/HttpResponseCache.java b/okhttp/src/main/java/com/squareup/okhttp/HttpResponseCache.java
index e299d5721..2b701c335 100644
--- a/okhttp/src/main/java/com/squareup/okhttp/HttpResponseCache.java
+++ b/okhttp/src/main/java/com/squareup/okhttp/HttpResponseCache.java
@@ -169,12 +169,18 @@ public final class HttpResponseCache extends ResponseCache implements OkResponse
       if (snapshot == null) {
         return null;
       }
-      entry = new Entry(snapshot.getInputStream(ENTRY_METADATA));
     } catch (IOException e) {
       // Give up because the cache cannot be read.
       return null;
     }
 
+    try {
+      entry = new Entry(snapshot.getInputStream(ENTRY_METADATA));
+    } catch (IOException e) {
+      Util.closeQuietly(snapshot);
+      return null;
+    }
+
     Response response = entry.response(request, snapshot);
 
     if (!entry.matches(request, response)) {
['okhttp/src/main/java/com/squareup/okhttp/HttpResponseCache.java']