Remove the check onDestroy since it requires API 17 or higher.