It may just be extracting waste. Give it a few hours to a day to see if it bubbles up again. If it's not attaching to a rock then it may be in jeopardy, but most likely it's just moving around and trying to find a spot to live in. Keep monitoring your water parameters, especially ammonia. If something spikes then you may want to take it out of your tank to prevent a crash.