Ensured action task start and end functions are called