There is a bug, that automatically opens the keep when you click on liberate. The issue has been reported.
To liberate yourself. Just click on liberate.
Close the keep menu.
Then you will see a window with Recall, select your troops and click on it, and you should be liberated.