Sometimes when you are attacked and change rooms both at the same time, you are ejected to the previous room and the enemies chase you off the map.