Added Try-Catch to Actions and Workflow EndPoint

Added Try-Catch to Actions and Workflow EndPoint to catch general
errors.