I get that the people in this situation were probably just arseholes, but it can actually be tricky to close the doors on train toilets. I have definitely stood there once or twice in my life trying to work out how to make the door catch and ending up just walking off in mild embarrassment.