ARQ-1356 Throw exception during invoke to set correct internal state

Test running with TestNG have the wrong internal state since state is
only set to FAILED if an exception is thrown.