added log when closing admin