Don't allow deregistration in certain cases.