handle errors in the observers