How do I automatically close an order when it is cashed off?

To do this go to System management->Main settings, then go to setting 12 and edit and change this to 0. Changing the number here will change the delay for the order to close in milliseconds.