kill the agent properly