Resolve ftp not disconnected issue when module upload is failed.