Mucous cocoons for sleeping is a pretty common occurence with wrasses. I don't know why they choose to do it or not do it some nights, but I have seen my sixline do it occasionally, as well as my fairy wrasses.
http://www.canreef.com/phpBB2/viewtopic.php?t=12509&
I have a few other links that reference this (see the thread I just linked).