Code execution after DialogService close

Hello! I have a problem.
After I open a component with the await DialogService.OpenAsync<SomeComponent>() and after that in the SomeComponent I call DialogService.Close() then the code execution continues where I opened the SomeComponent with DialogService, so here : await DialogService.OpenAsync<SomeComponent>() which is good, this is what I expected.

But if I open a component with await DialogService.OpenAsync<SomeComponent>() and after that I open some other component from SomeComponent like this : await DialogService.OpenAsync<SomeOtherComponent>() and then I close it with DialogService.Close() and after the closing I call the DialogService.Close() in SomeComponent too then the code execution doesn't continue from where I originally opened SomeComponent.

If it is not understandable, I can make a sample project to provide code. Thank you in advance.