To cancel your visa, immigration office have to cancel visas of people sponsored by you, first.

You, and they, can stay in Qatar 3 months after visa cancellation, legally (I think, please confirm), that would be enough for them, and you can leave before them.