<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [motion-sdk](./motion-sdk.md) &gt; [ClosedReason](./motion-sdk.closedreason.md)

## ClosedReason interface

End-of-life information on a [Motion](./motion-sdk.motion.md) client.

**Signature:**

```typescript
export interface ClosedReason 
```

## Properties

<table><thead><tr><th>

Property


</th><th>

Modifiers


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

[cause?](./motion-sdk.closedreason.cause.md)


</td><td>


</td><td>

[MotionError](./motion-sdk.motionerror.md)


</td><td>

_(Optional)_ Error that caused the client to closed, if any.


</td></tr>
<tr><td>

[reason](./motion-sdk.closedreason.reason.md)


</td><td>


</td><td>

string


</td><td>

Brief, developer-readable explanation for the closure.


</td></tr>
</tbody></table>
