Added graceful error return and exit for url not found condition