[Bug]fix no stop preview when exit