Few days ago I'd just put a couple fresh pieces of wood in the stove and closed the door but didn't throw the latch down so as to let the draft suck some air in over the coals to heat up and ignite the fresh logs. A few minutes later the smoke alarm went off but there was no smoke though the fire thru the window in the door showed the fire now raging. I went over and threw down the latch on the door but noticed thru the window looking out over the backyard all kinds of grayish smoke coming down to the ground. Went out and looked up at the stovepipe and the cap on the top has been getting more and more clogged with creosote but smoke was coming out so I went back inside and then noticed that the stovepipe had come away from where it goes thru the wall and in the gap I could see the sparks passing thru. I pushed the stovepipe back into the wall and then saw it glowing orange where it met the metal plate on the wall. I called the local Vol. Fire Chief who has a business right in town and he came down and we took out the logs inside that were burning as well as emptied the ashes in the stove. Within 15-20 minutes the wall around the stovepipe had cooled down so he suggested to get that cap off the top of stovepipe up on the roof as most likely as the wood in the stove flared up and was burning HOT ,all that heat and smoke couldn't get up and out the pipe as fast as it was being pushed out from the stove and caused it to back up and push the stovepipe inside away from the wall. The thick grayish smoke outside must have been creosote at the top being burned off. I got hold of a local guy that does odd jobs and he came down and was able to get the cap off the top and I've been burning ever since with no issues but whoa what a scare !!