use forEach to invoke sandbox.stop to prevent _.invoke getting the length wrong