The only one of my geckos that has done this was out for quite a long time before she did... it was the signal that she was ready to go back into her cage. None of my young, skittish ones have done this.
If you keep working with them, this will stop. Always be gentle, and make sure you're not overly stressing them out by keeping them out of their cages for long periods of time.