Added one second sleeps when uncaught exceptions show up to avoid fast looping in the presence of bugs.