Added handling of timeouts.
And other exceptions as well - we may want to test this further.
Currently, if any sort of exception is encountered, the script will
simply move on to the next entry.