streams closed in finally block