Potential bug in disconnect process fixed.