[SCSI] libosd: Error handling revamped