Once a contract (machine) has terminated, open the contract (machine), and set the Status to Finish.
Change the Machine# to (in the case of the above machine) ZZ1. The contract history will remain, but the contract will appear at the bottom of your list.
Further information: