This is a second attempt to get the crash fixed. The original fix
worked, but it was reverted by d3e0d7f082
.
Now the logic goes as:
- All pointers which we can not have shared (the ones which are
owned by the runtime) are cleared.
- The rest of runtime stays untouched.
This seems to be enough to keep particles happy.