Commit code to close all active orders.