If you accidentally dial 911, follow through with the call
You may panic and not say anything, then maybe hang up. You aren’t in trouble and you’ll actually waste more of the operator’s time by hanging up, because then they have to call you back to make sure there was no emergency.