fixed the interrupted exceptions.