Enclosures to safely contain batteries