t4053: avoid writing to unopened pipe