I was going to suggest the same thing...perhaps closing the bathroom door and confining him is what is causing the anxiety. Maybe you could try gating him into a room and see if that helps. It may also help to spend some time with him each day in that room so that it is not "strange" for him to get comfortable there. Good luck