Add in error catch that displays the error and increments count. Exit after 10 errors for queuing