# SiloLifecycleSubject.OnStop(CancellationToken)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.silolifecyclesubject/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.silolifecyclesubject/methods/)

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Orleans.Runtime/Lifecycle/SiloLifecycleSubject.cs#L70-L75)

```csharp
public override Task OnStop(CancellationToken cancellationToken = default(CancellationToken))
```

Handle stop notifications.

### Parameters

- `cancellationToken` (`CancellationToken`): The cancellation token which indicates that the operation should be stopped promptly when it is canceled.

### Returns

A `System.Threading.Tasks.Task` which represents the operation.
