internal static void UnqueueForShutdown (Action a) { lock (shutdown_actions) { shutdown_actions.Remove (a); } }