How can i close or make it invisible photon multiplayer room?

i wanted to close a photon multiplayer room, is there any function or any way to do this?
i wanted to close the room once the game has started so other cannot join

i have read that you can use

PhotonNetwork.room.open = false;

but it seems deprecated

PhotonNetwork.CurrentRoom.IsOpen = false; // makes room close
PhotonNetwork.CurrentRoom.IsVisible = false; // makes room invisible to random match making