    # Step 4: place tomato2 on the plate
    print("[Task] Placing tomato2 on plate at:", plate_pos)
    obs, reward, done = place(
        env,
        task,
        target_pos=plate_pos
    )
    if done:
        print("[Task] Task completed successfully! Reward:", reward)
    else:
        print("[Task] Finished plan execution. Final reward:", reward)

finally:
    # Always ensure the environment is properly shutdown
    shutdown_environment(env)

print("===== End of Skeleton Task =====")