That is one strange story. Spooked by a spirit perhaps?
Did you change the room temperature by any chance? Maybe its now too hot for your pup?
My pup always use to sleep with me in my room and would cry if I had closed the door and he wasnt in. Recently, i caught a cold and It been freezing here in Toronto so I had to hike up the heat. He now sleeps in the living room, or hallway of my bedroom and only occasionally sleep on the foot of my bed for an hour or so in the morning.