Getting them off without squishing them can be hard.
The rock needs to be dry, try to dry the base of the polyp.
Glue it on with super glue gel, and get it back into the water quickly. The glue will heat up and possibly kill the polyp as it is drying if you don't.