I haven't been able to reproduce this.  It appears something is
corrupting the typed_flag in the thread VALUE before IO#close.
Do you get segfaults or other unexplained errors?
Does this happen near/when unicorn worker processes exit/spawn?

Thanks for any more info you can provide.