I figure by the time the flames have got there the machine has problem already got problems of its own!
I have a smoke alarm in my printer enclosure, but will definitely use one of these in he cnc enclosure (well that may be a long way off, but I"ll definitely use one! ) (Link chosen at random as an example - not an endorsement of this vendor.)