Installation of electrical and service panels is done safely in residential closets. You are not allowed to do this, according to the National Electrical Code, which states that "Overcurrent devices shall not be located in the vicinity of easily ignitable material, such as in clothes closets."
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.