handle and report exceptions raised for an invalid URL