Legislators raised concerns about how the contract was set to end abruptly, potentially causing problems for patients.