Experienced DJs usually have a backup plan in place. They may have connections with other DJs who can fill in for them in case of emergencies. It's wise to discuss this possibility with your DJ beforehand.