MAJOR baldur's gate 3 spoilers, do not read aescling
If you have non-lethal attacks on and bring raphael down to 1 health while he is hold monster, the dialogue that occurs as if you've beaten him, and the portal that allows you to leave appears. But once hold monster ends he will escape and start attacking again