cec: don't replace a command handler when it's being used