Finish task F