Fix --gentle mode

Check if cached is used before attempting to kill it.