Adding fault tolerance to verify stream closed
Removing unused variable