Fixed local RMI not working. Creating a registry must happen after exporting objects.