Ensure that asyncStateMachine.asyncOperation() is only called during async processing. It was possible that this would be called once async processing had completed, triggering an ISE.