I assume your database is split since it is multi -user to prevent data corruption.
I set a flag file in the directory with the back end database. I have each users front end have a timer that check the for the flag. WHen found, it logs the users our and will not let then back in.