If he's sending threatening texts best course of action is to go to the local L/E and show them this, and make sure a file is started and you get the card of the officer you speak with. Explain you're concerned for your safety, feel the threats are legitimate, that you have NO wish for violence, yet feel threatened and will defend yourself if necessary.