Add a pen spring to your headphones cable near jack to wire being strengthened
Same for phone chargers I presume.