Should disconnect from ftp server after backup is finished
Fix invalid write length
Add buffered read operation