The only way for the player to leave this shack is by killing one of the prisoners or Astrid. Even if you kill Astrid and free the prisoners, they do not leave the shack.