Help with Rekordbox soft wear and Denon Equipment

Hi - I have to ask and sound like a complete twat for not knowing but I have all my music on a separate hard drive. I use Rekordbox for one of my projects My question is what is the correct way to close down Rekordbox first then shut down the hard drive so I do not corrupt what’s on it. I’ve done it once can’t afford for it to happen again. - Thanks

Any software: quit the application, not just close the window. Then unmount (eject) the drive.

Super simple.