Add a server option that disables the autobalance or the team switching (join command) or both in the last 120 seconds of a game. The forcejoin command should work all the time.
Maybe add a second option, where a serveradmin can change the time. But 120 seconds are good in my opinion, so thats not very important.