Clean up exec event handler