Updated front-end to exit when all nodes quit.