@Yan Xie - is there anything in the code that could be causing a problem - for example you're multi-threading and hitting some kind of issue there (locking etc) ?
I assume you have implemented the code in a way that shutdown (if it is requested) is handled gracefully? REF https://github.com/projectkudu/kudu/wiki/WebJobs