CLOUDIFY-1727 Added error handling to task execute