I think you should've trained it, like praising it, or giving it's snack. If your tama acts that way, it means it's being naughty. So, next time just treat it some snacks, and then praise it.
Yeah, you probably should have tried to praise it or give it a time out. Whichever one would work. Mine has been sick a few times, but I've never had that problem before.