You're right. Hot-glue would not be a good choice.

"Superglue" (often called 502 glue) is what's normally used. Suring--my motor's...