WFLY-2507: fixes rar deployments wrt register's leaks