simulator: Handle recursive calls with print-stats