Catch InterruptedException from sleep.