Finally I've found that i can just set ids for the stacks and ust use getParent("some-id").goBack() at the end of the process.
So when the side process is done I can take user back and set hi's history to the place like he didn't do anything aside.