I'm thinking this is a function of DB and not configurable via a profile or plugin.
I recently got into DemonBuddy and am loving it, I have 9 years .net experience. From what I could tell there isn't a method exposed to Leave Game, there is a class called something Like CompleteLogoutMessage, with a private function that allows for logout. However, since it is private you cannot access it in a plugin. The resurrection is handled by DB not by a plugin or the profile.
Solutions:
1. DemonBuddy Devs add a function to logout.
2. Capture deaths in a plugin make a global variable to leave game, then teleport to town
I can't think of anything else, other than writing a leave game function using background mouse clicks and pixels which I could write, but seems ugly given the rest of this wondrous bot.
Edit: There might be: ZetaDia.Service.Games.LeaveGame();
If that function exists I can add a quick plugin to leave game on death, however that function might actually close the game not just leave the current session.
Edit2:
Made a quick plugin while at work:
--> Posted here <--