Move cleanup operations to the sandbox.