pipe streams together and close all of them if one of them closes