added ability to destroy rmi-registry