in reply to Net::FTP
You are correct in your expectation. Perhaps set a breakpoint right after the quit to see if it is really ending there. Put an or die $ftph->message in the troublesome statement.