Callback from an embedded framework storyboard having multiple view controllers

I am creating a swift framework which has multiple view controllers connected via segues. I want to publish this framework out where the projects using this will invoke the embedded storyboard to perform a set of actions.

Once done I want to return the control back to the viewcontroller which invoked the storyboard. dismissViewController would only take me back to the mmediate view controller and since I have multiple view controllers this would not work. I thought of unwind segue but it will only take me back to the initial view controller within the embedded framework.

Any ideas on how to approach this?