improved exception and not found pages with log messages