fix setLog for ESX tasks

ESX tasks should normally ends now.

fixes #2185