ensure InterruptedException handling