Enhancing thermal stability of polyhydroxyalkanoates for their closed-loop chemistry