Updates to exception handling, target file writing, and url counter status