Replaced postProcess with finallyProcess in order to assure a correct
result type is set in case of failure.