1525 sftp failures

Improve SFTP error handling and remove use of IFinishableConsumer. fixes #1525