split script_task::ExitMsg into WindowExitMsg and PipelineExitMsg