Deal with InterruptedException

Thread.sleep is throwing exception this is now handled correctly and not
more printstack is visible in the log