Throwing errors in pause/resume block.