init the exception and ready to make thread work.