The teacher can stop sharing the screen by clicking on the cast screen and disconnecting the screen and clicking on share again and share the screen.