better logic on max users
only send quits once
fix some unhandled errors