Improve web exception handling.