ftp don't login if connect is not closed

Signed-off-by: Fuang.Cao <cavan.cfa@gmail.com>