main exits, sub not executes