this should be:

```Java
try {
   ActivityTimeMonitor.checkForTimeout();
} finally {
  in.close();
}