Removed thread interruptions and transformed them into exceptions