This allows unifying the way we prevent the serialisation of things that
can't be sent over IPC for their in-process nature.

This is a proposed solution to things like:
#9373

Where something like the following can be used:

```rust
    Exit(Unserializable<Sender<()>>),
```