Add better error handling to the Web plugin.