V0.3, add prepare and cleanup directly in the run process