It shuts down properly, without blocking.