If ```in.close()``` throws Exception, ```buffer``` will not be cleared. Should we do like this? 
```
try {
  in.close();
} finally {
  buffer = null;
}
```