error reporting via email in cluster example