Hi there, I always follow this procedure:
1. Turn the Camera on (and leave it on while cleaning).
2. Set IS mode to Off so the sensor remains locked in position.
3. Switch the shutter to ES - this prevents accidently closing the normal mechanical shutter while cleaning.
4. Turn "Shoot without Lens" to Off - this prevent the shutter from working with the lens removed
5. Turn Power Saving Mode to Off.
Once cleaning is done you can reverse all of these settings as required.