On Some Stochastic Optimal Control Problems in Actuarial Mathematics