Cleaning up publish tasks