Ok...maybe this will make it easier... can the action of pressing the X simply open a small window "Close MusicBee" "Are You Sure?" YES/NO.
Many programs have this option in order to avoid accidental closure. It would also resolve many issues where continuous play is required and accidental closing of the program needs to be avoided.
