isDetaching property
Whether or not the current termination is happening because the user chose to detach from an attached process.
This affects the message a user sees when the adapter shuts down ('exited' vs 'detached').
Implementation
bool isDetaching = false;