Only Close in Teardown if Open

We only want to tell the menu to close if it is open. Menus share the container element and closing a menu that isn't really open will cause classes to be erroneously removed from the container element when there might be another menu still needing them there.