Moments of cumulated output and completion time of unreliable general markovian machines