Clean up execution function