In case of any medical emergency during surgery, it is important to have established a plan of action ahead of time with all necessary personnel and equipment available to address the situation accordingly. This helps ensure the safety and wellbeing of both the patient and surgical team members.