bugfix for when a file is being downloaded
added exception handling to worker threads and the response thread functions