Added catch for exception and added debugging.

I added a while loop to the catch around the .get() function in
GeneratingScreen. It currently attempts to pull the document five times,
and if unsuccesful, will give up and exit the thread. Also I added debug
messages.