I really don’t think you should go back in the closet. If your friend doesn’t accept you it might not be a friendship worth preserving. It also depends on how long you’ve known each other tho. What’s more important to you, maintaining the friendship or being 100% yourself?