I would pull it out. 9cm is pretty large for a nano. Overall I think bristleworms are beneficial to a system. However I think they can be a problem if they get particularly large, or if the tank isn't being fed much. They're opportunistic detrivores, and if there isn't enough detritus around and they're large enough they will go after your sleeping fish. Some people have reported them eating corals as well. I normally ascribe that to the coral being unhealthy to begin with, but again if the worm isn't getting enough food, it'll move from it's normal meals to whatever's available. Since we generally try to feed nano tanks less to keep from overworkin the smaller filtration systems, larger worms could be more problematic in my opinion.
B