Detect bad tool by relative movement of tool with respect to tool holder