Form ending - close modal

It would be useful at the end of a conditional form, that an ending option include the abiltiy to “close modal”. This would remove modal “pop ups” and allow users to continue with the original data set.