Extra error checking around calling callbacks.