It's done in _d_monitor_destroy.