Check if a "background client thread agent" is already running

I have an agent which runs as a background client thread (running on the Notes client).

The agent is started manually by the user.

To prevent the user starting the agent several times, I would like the agent to check if it is already running.

I would prefer not to use a profile document to handle the execution status of the agent.

TIA

Michael