Molting time is an awkward time in a young mantis' life. They stop eating, are awkward, become anti-social, and get nervous in the presence of members of the opposite sex. They certainly like to hide a lot, too.
My mantis usually hides for two days before a molt, and stops eating a week or two in advance.