Although not absolutely necessary, since we clear the flag every time we abort the execution, I have added this for extra clarity and safeguarding. Thanks.