close ftp object on input close