I get the professor needed to disclose it and did a good job not to over excite everyone. But I would hand my exam in and either barricade the door or bolt if I felt necessary. An exam isn't worth not being precautionary in these types of situations.