Fixed exit code when page could could not load.
Improved error log.