Before each event handler is called, it is checked whether the dcb has been closed. If it has been, then the event handler is not called. The check has to be made before each event handler, because any event handler can close the dcb.