Pray during the pauses
"One thing we can do if we sin during a sermon is offer a confession during the pauses. A simple 'I'm sorry' in our hearts will suffice to bring us to a place of openness before God, especially in circumstances where the offense is real but not public." Bill White, When You Sin While Preaching, Leadership Journal