Control statements for collector startup and shutdown

The control statements to the left define the startup and shutdown behavior of the collection task.