} finally {
serverManagement = null;
// Unregister sockets from the SBM
if (socketBindingManager != null) {
ManagedBindingRegistry registry = useUnmanagedBindings ? socketBindingManager.getUnnamedRegistry() : socketBindingManager.getNamedRegistry();
if (basicManagedBinding != null) {
registry.unregisterBinding(basicManagedBinding);
basicManagedBinding = null;
}
if (secureManagedBinding != null) {
registry.unregisterBinding(secureManagedBinding);
secureManagedBinding = null;
}
socketBindingManager = null;
useUnmanagedBindings = false;
}