The transition from ergodic to explosive behavior in a family of stochastic differential equations