fixed control script status exit