minor fix which attempts to terminate the process before a straight kill