  We establish existence, uniqueness and regularity of solution results for a
class of backward stochastic partial differential equations with singular
terminal condition. The equation describes the value function of non-Markovian
stochastic optimal control problem in which the terminal state of the
controlled process is pre-specified. The analysis of such control problems is
motivated by models of optimal portfolio liquidation.
