Add global error handler for application

only client-side...