My guess is you're being hit with SIGPIPE. Try catching the signal.
In reply to Re: Net::FTP quit terminates Perl script by Anonymous Monk in thread Net::FTP quit terminates Perl script by misterperl