Cheaters: Prevent them or catch them?

I would leave access open, but replace the slides with “You have been caught accessing class material during the exam. Please discuss this with me after the exam.”