David was ready to die to escape the guilt and isolation he felt from his sin.