Handle null connection when recycle it.

Signed-off-by: 核心力量 <kernelforce@gmail.com>