Printer class inherited from EventEmitter and now emits state/reason change events