In the old doodle3d-client Printer class we checked the state to make sure we didn't send more gcode to a printer that was stopped https://github.com/Doodle3D/doodle3d-client/blob/master/js/Printer.js#L195