fixed exception in disconnect socket