Can either party terminate the contract if the period is not specified?
Yes, either party can terminate the contract if the period is not specified, as long as they give notice to the other party within a reasonable period prior to termination.