fixed erroneous reopen on ioctl during the stopped state