Closed closure causing bug with .withArguments() method