Cancel transaction in case of StateMachineNotFound exception.