Claustrophobic patients should undergo a special preparation for this procedure, i.e. they should take anti-anxiety medication. If claustrophobia persists press the device you hold in your hands and the procedure will be stopped immediately. There are open MRI equipment to reduce claustrophobia to the minimum.
Should these measures fail, the procedure will take place under sedation or anaesthesia.