more debug on graceful shutdown