Handle abnormal quit of ndnd.