Bug: close reader in finally block