USB Disk Ejector is a free, portable program that allows you to remove drives in Windows as an alternative to Windows quickly â€œSafely Remove Hardwareâ€ dialog.
If any applications are running on a disk, then Windows won't be able to eject it. USB Disk Ejector can detect and auto-close any applications running from the drive before ejecting. Please note this closes apps that were launched from the disk, not applications that have opened a file on the disk. See the limitations section for more information.
Command-line options are also available allowing you to create batch files, desktop shortcuts or hotkeys, for example.
If you find this app useful, the author accepts donations at their website or at PayPal here.