Issue #4277: fixed a bug of ControlButton that it will crash when it deletes itself in its callback.

Fixed a bug of ControlButton that it will crash when it deletes itself in its callback.