To end an FTP session, type quit or bye.
Before ending an FTP session, use a Ctrl C command to close the data connection.