@Override
    public HandlerRegistration addDirtyHandler(final DirtyHandler handler) {
        return addHandlerToSource(DirtyEvent.getType(), handler);
    }
Called when an attempt is made to close this presenter
stroom-core-client/src/main/java/stroom/entity/client/presenter/DocumentEditPresenter.java