In this paper, we consider the problem of maximizing the expected discounted utility of dividend payments for an insurance company taking into account the time value of ruin. We assume the preference of the insurer is of the CRRA form. The discounting factor is modeled as a geometric Brownian motion. We introduce the VaR control levels for the insurer to control its loss in reinsurance strategies. By solving the corresponding Hamilton-Jacobi-Bellman equation, we obtain the value function and the corresponding optimal strategy. Finally, we provide some numerical examples to illustrate the results and analyze the VaR control levels on the optimal strategy.