fix signal handler id no set to 0 after disconnect