Not saying it is the phone, but the Bluetooth connection for audio is different than the Bluetooth connection for the key. Just because you are connected to audio doesn't necessarily mean that the phone key has not disconnected after unlocking the doors.
Then why would it work after opening and closing the door? (The other time I had to reset the Tesla)