handle broken socket; color for pm/direct