Issue 171-2: Catch exception and reexecute smartly

QPid's client library throws exceptions for for some errors that can happen often.
So catching them and a re-execution mechanism are needed. I fixed HatoholThreadBase so that other sub classes that need similar things can do it.