Andy Murray thinks players need to be more careful about how they speak to officials and that tennis could learn a lot from rugby on how to handle unsportsmanlike conduct.