Enhance error handling in the SysVQueue