Replaced function IsInterrupted() by type Errno