Bind rewriteSMP cb to the correct context and emit error