If you have hacks just go in freecam, go out of the portal a few blocks and type /spawn or any command to take you somewhere else, it'll get you out.