Being lawful evil, I have always understood that devils adhere to the exact letter of the contract..not the spirit. Thus, if there's nothing in the contract concerning relations following completion of main quest (sealing the abyssal portal), there's no barrier on turning on them afterwards...