My bad, I thought I was in Java 7 where these resources implements java.lang.AutoCloseable and would be automatically closed. I forgot that Android doesn't support Java 7.

Thankyou.