Print better errors, and add util stop_node() function.