Remove remote users before local users on shutdown