Better error-checking in libmarquise context initialization