Fix non-blocking streams. Streams are now done. Fix #288.