added server side error handler to web app