envoyd: close pipe after parsing