how to handle unexpected situations in the classroom