fixed #272: Error handling for stopping FTP uploads