Internal function to Core.aslx - games should not normally need to call internal functions.
TryOpenClose (boolean open, object)
Does not return a value.