Rework the error handling in the command_pipe function