Hornets’ bad second half ends with loss