The WWW::Mechanize documentation at CPAN explains the option 'onerror'.
Try using it, it may help ;-)
Since yo did not set any options, Mechanize falls back to the standards it's author found most helpful.
Wolfgang
Comment on Re: Robust Handling of Broken Links in Mechanize?