We consider a Markov-modulated Brownian motion (MMBM) with phase-dependent termination rates, i.e. while in a phase i the process terminates with a constant hazard rate ri ≥ 0. For such a process, we determine the matrix of expected local times (at zero) before termination and hence the resolvent. The results are applied to some recent questions arising in the framework of insurance risk. We further provide expressions for the resolvent and the local times at zero of an MMBM reflected at its infimum.