use exit hook to remove temp file (#7611)
use exit hook to remove temp file (#7611)

This guarantees the removal will trigger for unexpected early exits
dmlc/xgboost,dmlc/xgboost,dmlc/xgboost,dmlc/xgboost,dmlc/xgboost,dmlc/xgboost