harden to handle errors more nicely.
handle request 500s more gracefully in the shell.