When a child process fails to stop in response to SIGTERM the agent timer pops and SIGKILL signal is sent to a process. The timer thread does pop but it checks the state of the process before sending SIGKILL. It only allows this to be sent to process which is in a Running state. However the process may be in Initializing and Starting states and SIGKILL is never sent.
Change the code to send kill signal no matter the state of the process is.