saving before attempting to remove users when they close their browsers