You will need to fix the indentation, and this also changes the semantics if a chronosphere isn't present (which may not be a bad thing).

If you stick with the current code then it would make sense to invert the conditional and loop:
```
if (chronosphere != null)
    while (!cargo.IsEmpty(self))
        cargo.Unload(self).Kill(chronosphere);
```