Better ExtIO handling in same thread