Fix publish/close task