error handle for sftp