should yield until the write stream closes. yielding is confusing with event emitters though. i'll fix it.