Optimal Trade Execution Under Endogenous Pressure to Liquidate: Theory and Numerical Solutions