Added logging to exceptions that was otherwise only reported to result collector (and thus without stack trace)
IllegalStateException if an average histogram is used before it is closed