We are calling JFtp from other java programs. That
means that when JFtp calls System.exit(1) it kills all
Our solution was to add static
JFtp.setStandAlone(boolean) method that is set to true
if main() is used. This way JFtp can check whether it
should use System.exit() or dispose().