qedr: modify QP state to error when destroying it