How to kill the popup in OS X when a disk can't be ejected

Solution 1:

The process is UnmountAssistantAgent, therefore can be killed using Activity Monitor, or by running:

killall UnmountAssistantAgent