trapping interruptedexception and re-throwing as runtime exceptions