Add possibility to retry certain types of errors

In our projects, we call an external Soap service, which is sometimes
temporarily unavailable. Trying the call again might succeed, which is
easier than aborting the state transition.
Merge master
Merge automatic retrying of certain error types