CA-77015: As well as catching the exception, make sure the task isn't marked as failed
CA-77015: As well as catching the exception, make sure the task isn't marked as failed

Signed-off-by: Jon Ludlam <e7e3380887a8f95cc9dc4f0d51dedc7e849a287a@eu.citrix.com>

guard163/xen-api,jjd27/xen-api,agimofcarmen/xen-api,huizh/xen-api,ravippandey/xen-api,rafalmiel/xen-api,simonjbeaumont/xen-api,agimofcarmen/xen-api,vasilenkomike/xen-api,anoobs/xen-api,cheng--zhang/xen-api,euanh/xen-api,euanh/xen-api,koushikcgit/xen-api,cheng-z/xen-api,srowe/xen-api,thomassa/xen-api,djs55/xen-api,anoobs/xen-api,anoobs/xen-api,Frezzle/xen-api,cheng-z/xen-api,robertbreker/xen-api,vasilenkomike/xen-api,cheng-z/xen-api,ravippandey/xen-api,anoobs/xen-api,ravippandey/xen-api,jjd27/xen-api,jjd27/xen-api,vasilenkomike/xen-api,agimofcarmen/xen-api,Frezzle/xen-api,robertbreker/xen-api,salvocambria/xen-api,euanh/xen-api,agimofcarmen/xen-api,jjd27/xen-api,djs55/xen-api,djs55/xen-api,robertbreker/xen-api,euanh/xen-api,cheng-z/xen-api,thomassa/xen-api,euanh/xen-api,anoobs/xen-api,rafalmiel/xen-api,ravippandey/xen-api,thomassa/xen-api,cheng-z/xen-api,cheng--zhang/xen-api,cheng-z/xen-api,salvocambria/xen-api,Frezzle/xen-api,anoobs/xen-api,guard163/xen-api,djs55/xen-api,rafalmiel/xen-api,jjd27/xen-api,jjd27/xen-api,thomassa/xen-api,cheng--zhang/xen-api,Frezzle/xen-api,ravippandey/xen-api,robertbreker/xen-api,guard163/xen-api,cheng--zhang/xen-api,koushikcgit/xen-api,euanh/xen-api,koushikcgit/xen-api,robertbreker/xen-api,srowe/xen-api,koushikcgit/xen-api,rafalmiel/xen-api,thomassa/xen-api,djs55/xen-api,Frezzle/xen-api,salvocambria/xen-api,srowe/xen-api,salvocambria/xen-api,cheng--zhang/xen-api,simonjbeaumont/xen-api,koushikcgit/xen-api,koushikcgit/xen-api,simonjbeaumont/xen-api,huizh/xen-api,vasilenkomike/xen-api,guard163/xen-api,simonjbeaumont/xen-api,huizh/xen-api,vasilenkomike/xen-api,agimofcarmen/xen-api,robertbreker/xen-api,agimofcarmen/xen-api,huizh/xen-api,srowe/xen-api,cheng-z/xen-api,salvocambria/xen-api,djs55/xen-api,srowe/xen-api,ravippandey/xen-api,salvocambria/xen-api,huizh/xen-api,cheng--zhang/xen-api,thomassa/xen-api,cheng--zhang/xen-api,guard163/xen-api,simonjbeaumont/xen-api,simonjbeaumont/xen-api,rafalmiel/xen-api,vasilenkomike/xen-api,guard163/xen-api,huizh/xen-api,rafalmiel/xen-api