ftp: abort function optimalization