Destructor berguna untuk membersihkan koneksi database atau menutup file log yang terbuka secara otomatis.