If your iPhone won't turn off the usual way, you can force restart it with a button combination specific to your iPhone model.
You can turn off the Find My feature on your iPhone from the phone's Settings app, or via the iCloud website.