Handling users and close