class StreamHandler - switched from a print to a exception