i'm not sure, as if this happens probably the error persist till pilight and the kernel module are restarted, but well then the wait doesn't make any sense