It is impossible to stop users from quitting the server, and even if it was you couldn't stop them from closing and reopening mc.