Once I have seen an article here; its author proposed to overlay output wires of a brushless motor with epoxy resin in order to prevent breaking away and separation of wires in the course of operation...
I do it something differently. As concerns the "bell-type" brushless motors, it is possible to do it much easier and with more elegance.