Added more informative errors to closure.