Deinit if it was initialized.