add error handleing
Merge pull request #2970 from syuvivida/53x_fixpowheg2

Add error handling