cleanup in modbus