Implementation of FTP client and creation of exceptions