better error checking on ws ioctl