Damage Control:
Joab is summoned and ordered to fetch Uriah from the Israelite camp. David orders the soldier to return home to his wife, reasoning that if Uriah presently lays with Bathsheba, no one can accuse her of infidelity when her child is born. (2 Samuel 11:6)