Weeks before she was found shot dead at close range, Cindy Crossthwaite was enduring a bitter court battle with her estranged husband, a court has heard.