Exit when invalid URL is requested