how can I set ncftp that it stops if the connection is not given to the remote server.

if you enter an wrong ip adress, the ncftp client always tries to reconnect with no timeout.
the programm keeps running, but it should terminate and return an error code



Code:
ncftpls -u user -p pass ftp://wrong.address
#the programm remains opened and does not throw any return code

does anyone know how to fix this`?