Accidental awareness in general anesthesia during a surgery is a rare occurrence. Still, a significant proportion of awoken patient has to suffer from pain and anxiety.

What measures would you take to prevent any such occurrence during a surgery?