fixed destroy phase. when program forked.
Merge pull request #1 from kan/fix-fork

fixed destroy phase. when program forked.