interpret non-proper termination as EOF
ftp: shutdown ssl connection properly before closing the socket.