Implement a system for detecting infinite loops in the web crawler. Currently, the program crashes when executing a crawler that contains an infinite loop. There are two potential solutions: log the failure and let the user figure out the loop for themselves, or detect and prevent the creation of infinite loops during the crawler construction phase.
