Lets face the facts. It takes a certain kind of person to work effectively inside the walls of a prison. Police officers spend a small amount of time with these yahoos, those who are inside are with them for 8-16 hours a day. That being said, you need to have a personality for the job.
I dislike most people, well, I would say 99.8% of people. I don't care for small talk. If I met you somewhere I most likely wouldn't give you more then a once over to determine if you were a potential threat and that is about it. If the wife drags me to a social function I stick to the corners and watch people. I am a people watcher. You can learn a lot from that. You might get a hello out of me and that is it, even if you try and force a conversation with me. Most would say I am a misanthropist. I would tend to agree with that. This serves me well at my chosen profession. I don't fraternize with my co-workers. I don't ask them questions about their family. I don't Facebook or hang out. I am not their friends. If I don't do that with fellow workers, why in the hell would I fraternize with an inmate??? I have been called an anti-social prick behind my back by those who work with me. Big deal. I still wake up every morning and look in the mirror and know I am good at my job and I am an awesome father and husband. That is what matters.
Of course, I have been called MUCH worse by the tenants.
Any time you mix men and women together for long periods of time the potential exists for these types of situations. It happens in women's jails and men's jails all across the US and world. I have seen more husbands leave their wives and vice versa for co-workers because let's face it, they spend more time with them then they do their own families half the time! Every now and then, someone comes in with a problem, dumps it on a listening ear, and one thing leads to another which leads to what happened in MD.
The simple solution to this is keep your family and personal life and home and your work issues at work. Co-workers are exactly that: CO-WORKERS. Not friends, not people you confide in, and not people you tell personal stuff too.