What do you do when this happens? What did you do the first time it happened?

Biting you the first Time might have been random but it could have given te snake the response it wanted which could be why it's continuing.

Personally if my Kingsnake started acting like this I would have loved it. I have always wanted a small but really defensive snake, but they always tame out with proper handling.