code: @Export
  	public JsHandlerRegistration addDispatchStoppedHandler(final DispatchStoppedHandler handler) {
  		HandlerRegistration registration = GwtCommandDispatcher.getInstance().addDispatchStoppedHandler(
  				new org.geomajas.gwt.client.command.event.DispatchStoppedHandler() {
  
  					public void onDispatchStopped(DispatchStoppedEvent event) {
  						handler.onDispatchStopped(new org.geomajas.plugin.jsapi.client.event.DispatchStoppedEvent());
  					}
  				});
  		return new JsHandlerRegistration(new HandlerRegistration[] { registration });
  	}
docs: Add a handler that is called whenever the client stops communicating with the back-end.
  
  @param handler
  The actual handler (closure).
  @return The registration for the handler. Using this object the handler can be removed again.