Schedule job is unregistered when cluser's node is offline

A plugin for Jira software which I developed has a scheduled job. Now I’m testing it in jira software data center with two nodes.
When I shut down one node, I found sometimes my job’s destroy method will be run.
So the job will be removed and never works until I restart the node again.
But this happens sometimes, not all of the time.
I don’t know the lifecycle when a node removed. And how to solve it.
Thank you!

My destroy method:

public void destroy() throws Exception { 

this.eventPublisher.unregister(this);

this.schedulerService.unscheduleJob(JobId.of(JOB_ID));

this.schedulerService.unregisterJobRunner(JOB_RUNNER_KEY);

}