When we have a failure, we may want to do multiple things to communicate the failure to the user.  Right now we just show messages, but this function exists to deal with that abstraction generally, if desired.