Close the window after invalid callback on map editor.