Added some error checking around synchronous starting and stopping of nodes