dispose method

void dispose()

Disposes of the registry

Implementation

void dispose() {
  unregister();
}