Handle exceptions in pacer and go to sleep