commons-net dependency - require FTPClient
correct closing of stream
double check locking to open a connection
using a proxy
checking connection
didn't need commons-net ftp client in the end - the timeout of 600 ms ensure the connection is relatively responsive.
unused imports