Add debug logging on graceful shutdown of MonitorImpl