if we find a shared master module, close its section before using it. Appears to fix issue #56