fix failure handling for node failure
Merge pull request #27 from h0nIg/failurefix

fix failure handling for node failure