Revert pipe macro, close bucket channel when pipe returns nil