Add exception handling for nonexistent web pages.