How to stop running job when agent lost connection

when agent lost connection, i would like to stop the job; but i don`t know how to set up option

Jenkins version:2.440.2