I have an old wired mouse close by for just such occasions. The only way that I have found to consistently re-establish a magic mouse connection is to reboot.
Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.