update graceful exit demo