Fixed issue caused by stream exit before getting all data. Running `b build` is now possible without private interface.