Prevented recursive initialization
Improved ftp connection handling