Added reparent/attach failure recovery code.
Added reparent/attach failure recovery code.

(Should only be needed in very exceptional situations.)

darcs-hash:20070313180824-4eba8-0c59aa89f0e33bd9aa02592e479581adbab49614.gz

p5n/notion,raboof/notion,anoduck/notion,dkogan/notion,anoduck/notion,dkogan/notion.xfttest,knixeur/notion,dkogan/notion.xfttest,anoduck/notion,raboof/notion,neg-serg/notion,anoduck/notion,knixeur/notion,raboof/notion,dkogan/notion,neg-serg/notion,neg-serg/notion,p5n/notion,dkogan/notion,p5n/notion,anoduck/notion,dkogan/notion.xfttest,knixeur/notion,dkogan/notion,raboof/notion,knixeur/notion,dkogan/notion,p5n/notion,dkogan/notion.xfttest,p5n/notion,knixeur/notion,neg-serg/notion