Check state

based on commit "FGCP: stop node before trying to destroy it with destroyNode" and your feedback to it in PR #94.