enable graceful shutdown scenarios where no more tasks are left running
graceful shutdown timeout of 10s as fallback