Fix exit from function in batch file issue.