J.J. Hardy on shaky night against Red Sox