I have read what the maker's explanation (not real explanation, more like a dumb excuse) is for including the UFO stuff. In my opinion, it is all about trying to be arty and trying to be extra surprising. But all it achieves is that it ruins the whole episode, which otherwise would be outstanding. The appearance of the UFO makes the whole episode plain stupid. It ruins the whole feel of the story.