Rescue for closed stream on close