Cleanup for publishing