When teacher leaves the class, students await 30 seconds in the last-known-state (e.g., screen transmission of locked screen), and are not allowed to leave the class or quit the program in this time.
I am still not sure if it should be considered a bug or a feature though.