Added a WhenComplete action