public void shutdown(int time) throws RemoteException {
   for (LoginWorldInterface lwi : WorldRegistryImpl.getInstance().getLoginServer()) {
     try {
       lwi.shutdown();
     } catch (RemoteException e) {
       WorldRegistryImpl.getInstance().deregisterLoginServer(lwi);
     }
   }
   for (int i : WorldRegistryImpl.getInstance().getChannelServer()) {
     ChannelWorldInterface cwi = WorldRegistryImpl.getInstance().getChannel(i);
     try {
       cwi.shutdown(time);
     } catch (RemoteException e) {
       WorldRegistryImpl.getInstance().deregisterChannelServer(i);
     }
   }
 }