scsi: handle flush errors properly