(PUP-1106) Check for failed deps on refresh

Retarget of #3079 onto master post puppet-4 merge down.
Ah, I was trying to figure out how that would work; it probably wraps the process_events call so it can check it.