Stop local background agent

Hello! I have a local background agent launched on my notes client. This agent is a Java agent and when this agent is running I can see it running in the taskbar. I would like to stop it before the normal end. Is there a way to do it ? This agent is launched by a command '@Command([RunAgent], “MyAgent”).