In Buddhism emotional pain is caused by wanting something. Desire can be controlled, and therefore pain can be mitigated by the cancellation of want. Even Buddha failed in this respect because after his "enlightenment" he decided not to kill himself because he wanted to tell others about his findings. It's not possible to want nothing except by dying. As dying is non-existence then the existence of want should be accepted. All you have to decide is what you want.

Control over your wants and discipline over yourself is more important that not wanting. Wanting might cause frustration and pain, but knowing what you want is the important thing, with the acknowledgement that you might not ever get it. This is enlightenment.

Mark Sheeky, 8 May 2013