While Ejecting Usb flash drives from PC, sometimes an error comes saying
The device “Generic Volume” cannot be stopped right now, try stopping the device again later.
Here is a free utility called EjectUSB that forcefully stops all the running programs and helps in ejecting pen drives safely.
It is designed to be a simple utility to close all programs running from a specified drive or folder and then attempt ejection if a drive was specified.
Click here to download this software from the official website.
NOTE - I HAVEN'T USED THIS SOFTWARE SO I DON'T KNOW ABOUT ITS EFFECTS!