He doesn't confine the adulterous pair to the cave; he confines a young couple who remind him of the pair.  The imprisonment in the cave happens twenty-five years after he was cuckolded; that couple is no longer young!  Thank goodness for doctor/patient confidentiality.  The ending is a little weird.  Psychological thriller; no supernatural elements.