In one case, the network firewall was blocking traffic on the port the FTP utility was trying to use to communicate to the remote server.  Because of the block, the FTP connection sequence went into an endless loop and the job had to be killed from the OS level.  Once the firewall was set to allow the connection, the script worked properly.

Note that the firewall block could be on either side, the initiating or remote side.