Shutdown the node when finishes