changed error handling, will now display error and retry instead of stopping thread"