Hacking around to resist errors in middleware and return what we can