Disabling buttons with custom postbackhandler on postback

On this page, you mentioned disabling the button during the postback phase.

In the attached video, I showed a problem I encountered in my own postback handler.

What could I have done wrong or omitted?