added logs when creating and closing admin