Check if log file exists in task handler