Bug fix: display end time only when job finished.