fix disconnect for ftp capability