Save ports in `sandbox.ports`.