A wise decision. Were you a known unrepentant sinner, your Pastor should bar you from the sacrament.
1 cor 11
28 But let a man examine himself, and so let him eat of that bread, and drink of that cup.
Over but not out.
So you believe that Paul is stating that Church leaders, if they know someone is a notorious, public sinner, SHOULD let those they are supposed to be caring for to drink judgment upon themselves?
If unrepentant sin is the reason you exclude yourself, repent and be forgiven. The unworthy taking of the sacrament is doing it in unbelief, not discerning the body. 1Cor 11:29.