enhanced Thread.sleep() exception treatment