fixed state when received a close event to none
which is used by open?

Signed-off-by: Graham Chiu <compkarori@gmail.com>