Immediately disconnect from nodes instead of at the end of a multi-node run

Fixes #168