The short-period limit of contact binaries