The extinction of slowly evolving dynamical systems