catches exception in MinyanThread, prints all stackTraces to System.out, Centralized Thread.sleep in Main