fix: log after test exit in TestAgent/StartupScript
#1726
Merged
8000
TestAgent/StartupScript
#1726