Robust exit codes
Added catch-all echo statement
More concise code
Optimized adding URLs to queue