Ensure that thenFinally callback is called even if task has already 
been resolved or rejected