If you cut the nails holding one of the corner studs to the bottom plate and the top plate with a Sawzall, you can use a flat bar (or a flat bar plus a wrecking bar) to pull the stud off the sheathing nails. Either re-use the stud, or buy a new stud, and install the stud with toenails as shown in the link I provided in Comment #51 (this link: Outside corner detail). https://m.youtube.com/embed/ggLAUsiuI_o
I had a hole in the drywall in our bathroom that was about 2 in x 5 in that I used Great Stuff to fix. I am impressed with the characteristics of the filler. It filled the hole completely in a few seconds of application. I will warn anyone using it though to make sure you don't fill the hole entirely flush to the wall because this stuff continues expanding after you apply it. I didn't think about that but no big deal really because you can sand it which is exactly what I did, and then applied spacial and paint and it is almost as good as new. For the price this was a heck of a deal because I only used a tiny amount and now am left with nearly a full can. I guess I will have to find somewhere else to use it now. Great product, ... full review
The problem you saw with the closed cell foam pulling away like that is due to the heat of the foam was to hot. It was actually curing out and making foam before it could adhere to the wood. The installer wasn't reading his foam correctly. He should of stopped and turned down the heat on his hose temp. Also installers have to be aware that as the sun rises and the temp in attics rises the subtrates get hotter as well. This will cause the installer to adjust his heat when installing the foam as the temp changes thru out the day.  
We have a 1950's ranch in Atlanta and are interviewing foam contractors to spray open cell under the roof, with an "ankle wall" out towards the eaves to seal the attic. My wife and daughters are chemically sensitive, so I'm trying to figure out how to minimize the fumes coming into the house. Additionally, at least one contractor has offered (for > $900) to remove our existing rock wool & R-13 fibreglass from the attic floor to "increase cross-ventilation into the attic". Seems to me I can't both minimize fumes AND increase cross-ventilation. They also offered to spray a fire-retardant on for >$600. Would ventilation during installation help any or woud the retardant seal off the foam and help that way? Thanks...
I just received this and it worked well for me. It works well for small gaps (around windows, between studs), but probably not the right tool for larger gaps (>1" or 2"). If used in larger gaps, it works OK if it is layered in. Spray a little and wait for it to set, then layer another on top, etc... This is pretty much noted by the seller. It is pretty much exactly as described and priced right, so 5 stars. If you need to do larger gaps, buy 2 part.
I recently did a remodel project for my basement using spray foam insulation. The original builder has used fiberglass, but I wanted the best insulation i could find. We chose closed cell foam because it blocks moisture from getting into the house. It took one day to install and was fumey for about 3 hours. It was pretty cool watching it being done. It comes out as a liquid and then expands rapidly into a foam. It's quick! Then they took a types of saw to shave it flat with the wall studs so we could then go ahead and drywall.

Roof Coating Denver Colorado