The Exit Problem for Randomly Perturbed Dynamical Systems