[fix] Catch error while closing stream in NonBlockingStreamReader