make sure that interruptedexception is rethrown