Automatically unmount a storage device after a copy operation