return E_WARNING on attach fail so error can be handled