According to mysqli document,
Open non-persistent MySQL connections and result sets are automatically closed when their objects are destroyed. Explicitly closing open connections and freeing result sets is optional.
But is it also optional for mysqli persistent connections?