A case in point: I have Bluetooth headphones connected to my MacBook Pro, I close the lid and want to connect headphones to my iPhone. I can't do that because the MBP ↔ headphones connection is still active.
How do I configure macOS so that Bluetooth is turned off or Bluetooth connections are disconnected whenever machine goes to sleep?
I'm using macOS Mojave 10.14.5.