Eject Drive AppleScript within Xcode Beachball

I’m trying to get a remotely mounted drive to nicely unmount or eject. Building through AppleScript within Xcode, the drive will eject, but only after getting the beachball for 10 seconds or so.

If I run this script from Script Editor, the disk ejects immediately.

tell application “Finder”
eject disk “ibLibrary-HD1”
end tell

Has anyone had this issue? -Thanks

Quad G5
MacOS 10.5.7
Xcode 3.1.2
Script Editor 2.2.1

This has always worked for me…

set theDisk to "myVolume"
do shell script "diskutil unmount " & quoted form of ("/Volumes/" & theDisk)