Added handling for exceptions in the Activiti process