gracenode.exit now handles graceful shutdown properly