any way you can have a callback function here that catches an error and communicate that back to the web app?