When I was a little girl, my mother said there were 2 Sara's: the good Sara and the bad Sara. Good Sara could stay in the house and do whatever; bad Sara was locked out of the house until the good Sara returned. I remember spending quite a bit of time locked out of the house, amusing myself in the backyard.
You need to tell Dan that you will no longer talk to the bad Dan (or Dick). If bad Dan calls, you will hang up immediately and not take any more calls until the good Dan returns. If bad Dan needs to call someone, he can call your attorney and pay $X.00 per hour for the privilege of talking to someone. But you are not putting up with bad Dan anymore.