Finite horizon regulator problem: the non-standard case