Divorce tends to bring out the worst in people. If the nature of your relationship involves heated exchanges in which your spouse exhibits fear or extreme emotional agitation, don't be surprised when you receive papers informing you that an order of protection has been entered against you.
You should be aware that if you violate the order by contacting your spouse for any reason, you are in contempt of court and more than likely will go to jail. With orders of protection, the police operate on an arrest now, ask questions later basis. The presumption is that if an order of protection has been granted, your spouse is in imminent danger as a result of contact with you. There is even case law on the books of an arrest for violating a court order because contact was made through a "friend" request on My Space.
With an arrest, on top of your matrimonial problems, you will then have a criminal record, which may adversely affect your employment opportunites and other areas of your life.
This is why when a marriage is dissolving, it's best to be conciliatory in any interactions you have, and let your lawyer do the talking on matters of dispute.