Ummm.. I don't think so, there might be a feature in Diplomacy 4.1 mod, but in native the only way to get out of your kingdom is to go to a king of another faction and trying to join them, although you hand over all of your territory to them and if you're lucky (and male) you'll be able to keep a place or two.