If you still have the option to use the devices in the prison, go back to your cell. If not try to talk to one of the succubi in the cafeteria I think. He tells you how to leave