BSDE with singular terminal values