What should we do to control your taking out of sperm?

I guess if you go into the bathroom and masturbate then when your sure your going to ejaculate then go to the toilet its easier and less messy