Exit Problems in Regime-Switching Models