More decent error handling for closure operators, fixes #683